+4
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user