mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 03:23:55 +03:00
Update UPGRADE-v2.0.md
This commit is contained in:
parent
066e7bab05
commit
48754046b2
|
@ -28,8 +28,7 @@ developer has to write to use them.
|
||||||
### Simpler resolvers
|
### Simpler resolvers
|
||||||
|
|
||||||
All the resolvers in graphene have been simplified. If before resolvers required
|
All the resolvers in graphene have been simplified. If before resolvers required
|
||||||
four arguments `root`, `args`, `context` and `info`, now the `args` are passed as keyword arguments
|
four arguments `root`, `args`, `context` and `info`, now the `args` are passed as keyword arguments, `info` will be always passed after `root` or `self` and `context` is now inside `info` (`info.context`).
|
||||||
and `context` and `info` will only be passed if the function is annotated with it.
|
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user