models, graph2: Added Comment type and queries, and hooked it up to chapter.
the build was successful

This commit is contained in:
2019-01-14 17:03:16 +01:00
parent 53a86c0b9c
commit d22ab387dd
14 changed files with 306 additions and 8 deletions
+15
View File
@@ -0,0 +1,15 @@
package queries
import (
"context"
"git.aiterp.net/rpdata/api/models/comments"
"git.aiterp.net/rpdata/api/models"
)
// Queries
func (r *resolver) Comment(ctx context.Context, id string) (models.Comment, error) {
return comments.Find(id)
}