From f9b3b61dcad90f7782d66206a5f8e17629098053 Mon Sep 17 00:00:00 2001 From: Thomas Hourlier Date: Fri, 25 Aug 2017 15:25:32 +0200 Subject: [PATCH] doc(README): add a missing import in README example --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdb44e2..42fb730 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ import 'dart:io'; // Optional because I am reading env variables. import 'package:http/http.dart'; import 'package:logging/logging.dart'; // Optional import 'package:graphql_client/graphql_client.dart'; +import 'package:graphql_client/graphql_dsl.dart'; /** * Define a custom GQL query. @@ -72,7 +73,7 @@ class BioResolver extends Object with Scalar implements GQLField { } Future main() async { - Logger.root + Logger.root // Optional ..level = Level.ALL ..onRecord.listen((rec) { print('${rec.level.name}: ${rec.time}: ${rec.message}'); @@ -82,7 +83,7 @@ Future main() async { final apiToken = Platform.environment['GITHUBQL_TOKEN']; final client = new Client(); - final logger = new Logger('GQLClient'); // This is optional. + final logger = new Logger('GQLClient'); // Optional. final graphQLClient = new GQLClient( client: client, logger: logger,