Skip to content

Commit f9b3b61

Browse files
committed
doc(README): add a missing import in README example
1 parent 82de41b commit f9b3b61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import 'dart:io'; // Optional because I am reading env variables.
2222
import 'package:http/http.dart';
2323
import 'package:logging/logging.dart'; // Optional
2424
import 'package:graphql_client/graphql_client.dart';
25+
import 'package:graphql_client/graphql_dsl.dart';
2526
2627
/**
2728
* Define a custom GQL query.
@@ -72,7 +73,7 @@ class BioResolver extends Object with Scalar<String> implements GQLField {
7273
}
7374
7475
Future main() async {
75-
Logger.root
76+
Logger.root // Optional
7677
..level = Level.ALL
7778
..onRecord.listen((rec) {
7879
print('${rec.level.name}: ${rec.time}: ${rec.message}');
@@ -82,7 +83,7 @@ Future main() async {
8283
final apiToken = Platform.environment['GITHUBQL_TOKEN'];
8384
8485
final client = new Client();
85-
final logger = new Logger('GQLClient'); // This is optional.
86+
final logger = new Logger('GQLClient'); // Optional.
8687
final graphQLClient = new GQLClient(
8788
client: client,
8889
logger: logger,

0 commit comments

Comments
 (0)