Add type info to schema docs

This commit is contained in:
Tobe O 2019-04-18 10:46:33 -04:00
parent f945779834
commit 45796b94a7

View file

@ -104,6 +104,19 @@ Take the following GraphQL query:
} }
``` ```
And subsequently, its schema:
```graphql
type AnimeQuery {
characters($title: String!): [Character!]
}
type Character {
name: String
age: Int
}
```
The field `characters` accepts a parameter, `title`. To reproduce this in The field `characters` accepts a parameter, `title`. To reproduce this in
`package:graphql_schema`, use `GraphQLFieldInput`: `package:graphql_schema`, use `GraphQLFieldInput`: