Changed characters graphql query to use the filter format, changed description for files query to match the others'
the build was successful

This commit is contained in:
2018-07-15 17:55:21 +02:00
parent 18e77b8205
commit ba1c1e0a4b
4 changed files with 85 additions and 33 deletions
+3 -3
View File
@@ -3,8 +3,8 @@ type Query {
# Find character by either an ID or a nick.
character(id: String, nick: String): Character
# Find characters by either a list of ids, nicks or an author. Only one parameter at a time
characters(ids: [String!], nicks: [String!], author: String): [Character!]!
# Find characters
characters(filter: CharactersFilter): [Character!]!
# Find channel by name
@@ -32,7 +32,7 @@ type Query {
# Find file by ID
file(id: String!): File
# Files get all available files. If includePublic is set, it will return public files as well
# Find files
files(filter: FilesFilter): [File!]!
+18
View File
@@ -22,6 +22,24 @@ type Character {
description: String!
}
# Filter for characters query
input CharactersFilter {
# Filter by character IDs
ids: [String!]
# Filter by nicks
nicks: [String!]
# Filter by names
names: [String!]
# Filter by author
author: String
# Filter by text search matching against the character's description
search: String
}
# Input for adding characters
input CharacterAddInput {
# The primary IRC nick name to recognize this character by