mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-23 23:20:47 +03:00
Merge pull request #210 from reisub-de/master
[Docs] Make it more obvious that the `node` Field is required for relay
This commit is contained in:
commit
3aa35460d5
|
@ -54,6 +54,8 @@ class Query(graphene.ObjectType):
|
||||||
node = relay.NodeField()
|
node = relay.NodeField()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you encounter an error like `Cannot query field "node" on type "Query"`, you most likely forgot to add the `node` Field.
|
||||||
|
|
||||||
## Mutations
|
## Mutations
|
||||||
|
|
||||||
Most APIs don't just allow you to read data, they also allow you to write. In GraphQL, this is done using mutations. Just like queries, Relay puts some additional requirements on mutations, but Graphene nicely manages that for you. All you need to do is make your mutation a subclass of `relay.ClientIDMutation`.
|
Most APIs don't just allow you to read data, they also allow you to write. In GraphQL, this is done using mutations. Just like queries, Relay puts some additional requirements on mutations, but Graphene nicely manages that for you. All you need to do is make your mutation a subclass of `relay.ClientIDMutation`.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user