Skip to content

Commit

Permalink
doc(README): add a missing import in README example
Browse files Browse the repository at this point in the history
  • Loading branch information
hourliert committed Aug 25, 2017
1 parent 82de41b commit f9b3b61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -72,7 +73,7 @@ class BioResolver extends Object with Scalar<String> implements GQLField {
}
Future main() async {
Logger.root
Logger.root // Optional
..level = Level.ALL
..onRecord.listen((rec) {
print('${rec.level.name}: ${rec.time}: ${rec.message}');
Expand All @@ -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,
Expand Down

0 comments on commit f9b3b61

Please sign in to comment.