Added stories query and resolvers
the build was successful

This commit is contained in:
2018-07-07 15:16:10 +02:00
parent 011cb00001
commit 5189d486a5
4 changed files with 95 additions and 3 deletions
+4 -1
View File
@@ -38,7 +38,10 @@ type Query {
# Find story by ID
story(id: String!): Story
# Find stories
stories(input: StoriesQueryInput!): [Story!]!
# Find story chapter by ID
chapter(id: String!): Chapter
+17
View File
@@ -35,6 +35,23 @@ type Story {
fictionalDate: String!
}
input StoriesQueryInput {
# What author to query for
author: String
# What tags to query for
tags: [TagInput!]
# The earliest fictionalDate
earliestFictionalDate: String
# The latest fictionalDate
latestFictionalDate: String
# The max amount of stories to get (default: 30)
limit: Int
}
# Possible values for Story.category
enum StoryCategory {
# Description and content of a document or item