diff --git a/packages/graphql/lib/src/core/raw_operation_data.dart b/packages/graphql/lib/src/core/raw_operation_data.dart index 87477c75..1b6cd5be 100644 --- a/packages/graphql/lib/src/core/raw_operation_data.dart +++ b/packages/graphql/lib/src/core/raw_operation_data.dart @@ -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.of(