Skip to content

Commit 066e7ba

Browse files
authored
Merge pull request #517 from picturedots/patch-1
minor spelling and grammar changes UPGRADE-v2.0.md
2 parents 0a97dea + 8826d72 commit 066e7ba

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

UPGRADE-v2.0.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
have been quite simplified, without the need to define a explicit Metaclass for each subtype.
55

66
It also improves the field resolvers, [simplifying the code](#simpler-resolvers) the
7-
developer have to write to use them.
7+
developer has to write to use them.
88

99
**Deprecations:**
1010
* [`AbstractType`](#abstracttype-deprecated)
@@ -20,14 +20,14 @@ developer have to write to use them.
2020
* [`Meta as Class arguments`](#meta-ass-class-arguments) (_only available for Python 3_)
2121

2222

23-
> The type metaclases are now deleted as are no longer necessary, if your code was depending
23+
> The type metaclasses are now deleted as they are no longer necessary. If your code was depending
2424
> on this strategy for creating custom attrs, see an [example on how to do it in 2.0](https://github.com/graphql-python/graphene/blob/2.0/graphene/tests/issues/test_425.py).
2525
2626
## Deprecations
2727

2828
### Simpler resolvers
2929

30-
All the resolvers in graphene have been simplified. If before resolvers must had received
30+
All the resolvers in graphene have been simplified. If before resolvers required
3131
four arguments `root`, `args`, `context` and `info`, now the `args` are passed as keyword arguments
3232
and `context` and `info` will only be passed if the function is annotated with it.
3333

@@ -112,7 +112,7 @@ class User(ObjectType):
112112

113113
### Mutation.Input
114114

115-
`Mutation.Input` is now deprecated in favor using `Mutation.Arguments` (`ClientIDMutation` still uses `Input`).
115+
`Mutation.Input` is now deprecated in favor of using `Mutation.Arguments` (`ClientIDMutation` still uses `Input`).
116116

117117
Before:
118118

@@ -135,7 +135,7 @@ class User(Mutation):
135135

136136
### Simpler resolvers
137137

138-
All the resolvers in graphene have been simplified. If before resolvers must had received
138+
All the resolvers in graphene have been simplified. If before resolvers required
139139
four arguments `root`, `args`, `context` and `info`, now the `args` are passed as keyword arguments
140140
and `context` and `info` will only be passed if the function is annotated with it.
141141

@@ -212,7 +212,7 @@ class Query(ObjectType):
212212

213213
## Node.get_node
214214

215-
The method `get_node` in `ObjectTypes` that have `Node` as interface, changes it's api.
215+
The method `get_node` in `ObjectTypes` that have `Node` as interface, changes its API.
216216
From `def get_node(cls, id, context, info)` to `def get_node(cls, info, id)`.
217217

218218
```python
@@ -251,7 +251,7 @@ Now only receives (`root`, `info`, `**input`)
251251
### InputObjectType
252252

253253
If you are using `InputObjectType`, you now can access
254-
it's fields via `getattr` (`my_input.myattr`) when resolving, instead of
254+
its fields via `getattr` (`my_input.myattr`) when resolving, instead of
255255
the classic way `my_input['myattr']`.
256256

257257
And also use custom defined properties on your input class.

0 commit comments

Comments
 (0)