Skip to content

Commit cbc1ef4

Browse files
authored
Update annotations-reference.md
* Minor grammar corrections
1 parent 5acda18 commit cbc1ef4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/annotations/annotations-reference.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# Annotations reference
22

3-
In the following reference examples, the `use Overblog\GraphQLBundle\Annotation as GQL;` will is omitted.
3+
In the following reference examples the line `use Overblog\GraphQLBundle\Annotation as GQL;` will be omitted.
44

55
## Notes
66

7-
- When a annotation require an expression, the `@=` will be added automatically if it is not set.
7+
- When an annotation requires an expression, the `@=` will be added automatically if it's not set.
88

9-
- For example, `@GQL\Access("isAuthenticated()")` will be converted to `['access' => '@=isAuthenticated()']`.
9+
- For example, `@GQL\Access("isAuthenticated()")` will be converted to `['access' => '@=isAuthenticated()']` during the compilation.
1010

11-
- You can use multiple type annotations on the same class. For example, if you need your class to be a Graphql Type AND a Graphql Input, you just need to add the two annotations. Incompatible annotations or properties for a specified Type will simply be ignored.
11+
- You can use multiple type annotations on the same class. For example, if you need your class to be a GraphQL Type AND a Graphql Input, you just need to add the two annotations. Incompatible annotations or properties for a specified Type will simply be ignored.
1212

13-
In the following example, both the type `Coordinates` and the input type `CoordinatesInput` will be generated.
14-
As fields on input type don't support resolvers, the field `elevation` will simply be ignored to generate the input type (it will only have two fields: `latitude` and `longitude`).
13+
In the following example, both the type `Coordinates` and the input type `CoordinatesInput` will be generated during the compilation process.
14+
As fields on input types don't support resolvers, the field `elevation` will simply be ignored to generate the input type (it will only have two fields: `latitude` and `longitude`).
1515

1616
```php
1717
<?php
@@ -36,7 +36,6 @@ class Coordinates {
3636
*/
3737
public $elevation;
3838
}
39-
>
4039
```
4140

4241
## Index

0 commit comments

Comments
 (0)