Merge pull request #1405 from conao3/patch-1

fix UPGRADE-v2.0.md
This commit is contained in:
Syrus Akbary 2022-02-13 12:57:54 -08:00 committed by GitHub
commit 61f0d8a8e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ def resolve_my_field(root, info, my_arg):
return ... return ...
``` ```
**PS.: Take care with receiving args like `my_arg` as above. This doesn't work for optional (non-required) arguments as stantard `Connection`'s arguments (first, before, after, before).** **PS.: Take care with receiving args like `my_arg` as above. This doesn't work for optional (non-required) arguments as stantard `Connection`'s arguments (first, last, after, before).**
You may need something like this: You may need something like this:
```python ```python