Skip to content

Commit

Permalink
feat(graphql-client): re-export parseString as gql
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Nov 11, 2019
1 parent 7b9ac57 commit dcd5508
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/graphql/lib/src/core/query_options.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import 'package:meta/meta.dart';

import 'package:gql/ast.dart';
import 'package:gql/language.dart';

import 'package:graphql/client.dart';
import 'package:graphql/internal.dart';
import 'package:graphql/src/utilities/helpers.dart';
import 'package:graphql/src/core/raw_operation_data.dart';
import 'package:graphql/src/utilities/helpers.dart';
import 'package:meta/meta.dart';

/// Parse GraphQL query strings into the standard GraphQL AST.
DocumentNode gql(String query) => parseString(query);

/// [FetchPolicy] determines where the client may return a result from. The options are:
/// - cacheFirst (default): return result from cache. Only fetch from network if cached result is not available.
Expand Down

0 comments on commit dcd5508

Please # to comment.