Skip to content

Commit

Permalink
fix: temporary disable assertion which is failing
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Nov 6, 2019
1 parent e9f9527 commit 3cf7333
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/graphql/lib/src/core/raw_operation_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ class RawOperationData {
'Either a "document" or "documentNode" option is required. '
'You must specify your GraphQL document in the query options.',
),
assert(
(document != null && documentNode == null) ||
(document == null && documentNode != null),
'"document" or "documentNode" options are mutually exclusive.',
),

// todo: Investigate why this assertion is failing
// assert(
// (document != null && documentNode == null) ||
// (document == null && documentNode != null),
// '"document" or "documentNode" options are mutually exclusive.',
// ),

documentNode = documentNode ?? parseString(document),
_operationName = operationName,
variables = SplayTreeMap<String, dynamic>.of(
Expand Down

0 comments on commit 3cf7333

Please sign in to comment.