From 96483f41cea7e9858357803a350f196e32b4a99d Mon Sep 17 00:00:00 2001 From: Maxim Savin Date: Sun, 5 Apr 2020 12:39:49 +0200 Subject: [PATCH] Small update in README --- packages/graphql/graphql_generator/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/graphql/graphql_generator/README.md b/packages/graphql/graphql_generator/README.md index c8ddc9db..fc990e3c 100644 --- a/packages/graphql/graphql_generator/README.md +++ b/packages/graphql/graphql_generator/README.md @@ -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') ]); -``` \ No newline at end of file +```