Small update in README

This commit is contained in:
Maxim Savin 2020-04-05 12:39:49 +02:00 committed by GitHub
parent 0c30f2d035
commit 96483f41ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')
]);
```
```