Add type info to schema docs
This commit is contained in:
parent
f945779834
commit
45796b94a7
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
`package:graphql_schema`, use `GraphQLFieldInput`:
|
||||
|
||||
|
|
Loading…
Reference in a new issue