Added Story.chapters to schema, added Story and Tag resolver
the build was successful

This commit is contained in:
2018-07-07 14:48:15 +02:00
parent e0409a6635
commit 866a5056be
5 changed files with 127 additions and 0 deletions
+4
View File
@@ -36,6 +36,10 @@ type Query {
files(includePublic: Boolean, mimeTypes: [String!]): [File!]!
# Find story by ID
story(id: String!): Story
# Find story chapter by ID
chapter(id: String!): Chapter
+3
View File
@@ -22,6 +22,9 @@ type Story {
# The tags for this tory
tags: [Tag!]!
# The chapters of this story
chapters: [Chapter!]!
# The date the story was created (RFC3339 format).
createdDate: String!
+9
View File
@@ -7,6 +7,15 @@ type Tag {
name: String!
}
# A Tag is a means of associating stories that have details in common with one another.
input TagInput {
# The tag's kind
kind: TagKind!
# The tag's name
name: String!
}
# Allowed values for Tag.kind
enum TagKind {
# An organization is a catch all term for in-universe corporations, teams, groups, cults, forces, etc...