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