Skip to content

Commit 1e20e2b

Browse files
authored
Update UPGRADE-v2.0.md
1 parent 4875404 commit 1e20e2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

UPGRADE-v2.0.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ developer has to write to use them.
2727

2828
### Simpler resolvers
2929

30-
All the resolvers in graphene have been simplified. If before resolvers required
31-
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`).
30+
All the resolvers in graphene have been simplified.
31+
Prior to Graphene `2.0`, all resolvers required four arguments: `(root, args, context, info)`.
32+
Now, resolver `args` are passed as keyword arguments to the function, and `context` argument dissapeared in favor of `info.context`.
3233

3334
Before:
3435

0 commit comments

Comments
 (0)