| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- """
- Autogenerated return type of CreatePokemon
- """
- type CreatePokemonPayload {
- errors: [Error!]!
- pokemon: Pokemon
- }
- type Error {
- message: String!
- type: String
- }
- type Mutation {
- createPokemon(nickname: String, pokedexNumber: ID!): CreatePokemonPayload
- uploadManyPokemon(base64EncodedPokemonFiles: [String!]!): UploadManyPokemonPayload
- uploadPokemon(base64EncodedPokemonFile: String!): UploadPokemonPayload
- }
- """
- An object with an ID.
- """
- interface Node {
- """
- ID of the object.
- """
- id: ID!
- }
- """
- Information about pagination in a connection.
- """
- type PageInfo {
- """
- When paginating forwards, the cursor to continue.
- """
- endCursor: String
- """
- When paginating forwards, are there more items?
- """
- hasNextPage: Boolean!
- """
- When paginating backwards, are there more items?
- """
- hasPreviousPage: Boolean!
- """
- When paginating backwards, the cursor to continue.
- """
- startCursor: String
- }
- """
- Returns a singular pokemon
- """
- type Pokemon implements Node {
- createdAt: Time
- id: ID!
- iid: ID!
- nickname: String
- pokedexNumber: Int
- updatedAt: Time
- }
- """
- The connection type for Pokemon.
- """
- type PokemonConnection {
- """
- A list of edges.
- """
- edges: [PokemonEdge]
- """
- A list of nodes.
- """
- nodes: [Pokemon]
- """
- Information to aid in pagination.
- """
- pageInfo: PageInfo!
- }
- """
- An edge in a connection.
- """
- type PokemonEdge {
- """
- A cursor for use in pagination.
- """
- cursor: String!
- """
- The item at the end of the edge.
- """
- node: Pokemon
- }
- """
- The root of this schema
- """
- type Query {
- """
- Fetches one or more pokemon
- """
- manyPokemon(id: String, ids: [String!], iid: ID, iids: [ID!], nickname: String, nicknames: [String!], pokedexNumber: Int, pokedexNumbers: [Int!]): [Pokemon!]!
- """
- Fetches an object given its ID.
- """
- node(
- """
- ID of the object.
- """
- id: ID!
- ): Node
- """
- Fetches a list of objects given a list of IDs.
- """
- nodes(
- """
- IDs of the objects.
- """
- ids: [ID!]!
- ): [Node]!
- """
- Fetches exactly zero or one pokemon
- """
- pokemon(id: String, ids: [String!], iid: ID, iids: [ID!], nickname: String, nicknames: [String!], pokedexNumber: Int, pokedexNumbers: [Int!]): Pokemon
- """
- Fetches one or more pokemon for Relay
- """
- pokemonConnection(
- """
- Returns the elements in the list that come after the specified cursor.
- """
- after: String
- """
- Returns the elements in the list that come before the specified cursor.
- """
- before: String
- """
- Returns the first _n_ elements from the list.
- """
- first: Int
- id: String
- ids: [String!]
- iid: ID
- iids: [ID!]
- """
- Returns the last _n_ elements from the list.
- """
- last: Int
- nickname: String
- nicknames: [String!]
- pokedexNumber: Int
- pokedexNumbers: [Int!]
- ): PokemonConnection!
- }
- """
- Time represented in ISO 8601
- """
- scalar Time
- """
- Autogenerated return type of UploadManyPokemon
- """
- type UploadManyPokemonPayload {
- errors: [Error!]!
- pokemon: [Pokemon!]
- }
- """
- Autogenerated return type of UploadPokemon
- """
- type UploadPokemonPayload {
- errors: [Error!]!
- pokemon: Pokemon
- }
|