Small update in README
This commit is contained in:
parent
0c30f2d035
commit
96483f41ce
1 changed files with 5 additions and 3 deletions
|
@ -16,10 +16,11 @@ like descriptions, deprecation reasons, etc.
|
|||
|
||||
```dart
|
||||
@graphQLClass
|
||||
@GraphQLDocumentation(description: 'Todo object type')
|
||||
class Todo {
|
||||
String text;
|
||||
|
||||
@GraphQLDocumentation(description: 'Whether this item is complete.')
|
||||
/// Whether this item is complete
|
||||
bool isComplete;
|
||||
}
|
||||
|
||||
|
@ -42,9 +43,10 @@ part of 'main.dart';
|
|||
/// Auto-generated from [Todo].
|
||||
final GraphQLObjectType todoGraphQLType = objectType('Todo',
|
||||
isInterface: false,
|
||||
description: 'Todo object type',
|
||||
interfaces: [],
|
||||
fields: [
|
||||
field('text', graphQLString),
|
||||
field('isComplete', graphQLBoolean)
|
||||
field('isComplete', graphQLBoolean, description: 'Whether this item is complete')
|
||||
]);
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue