File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import 'dart:io'; // Optional because I am reading env variables.
22
22
import 'package:http/http.dart';
23
23
import 'package:logging/logging.dart'; // Optional
24
24
import 'package:graphql_client/graphql_client.dart';
25
+ import 'package:graphql_client/graphql_dsl.dart';
25
26
26
27
/**
27
28
* Define a custom GQL query.
@@ -72,7 +73,7 @@ class BioResolver extends Object with Scalar<String> implements GQLField {
72
73
}
73
74
74
75
Future main() async {
75
- Logger.root
76
+ Logger.root // Optional
76
77
..level = Level.ALL
77
78
..onRecord.listen((rec) {
78
79
print('${rec.level.name}: ${rec.time}: ${rec.message}');
@@ -82,7 +83,7 @@ Future main() async {
82
83
final apiToken = Platform.environment['GITHUBQL_TOKEN'];
83
84
84
85
final client = new Client();
85
- final logger = new Logger('GQLClient'); // This is optional .
86
+ final logger = new Logger('GQLClient'); // Optional .
86
87
final graphQLClient = new GQLClient(
87
88
client: client,
88
89
logger: logger,
You can’t perform that action at this time.
0 commit comments