@@ -33,7 +33,11 @@ import { execute } from "@apollo/client/link/core";
3333import type { MaybeMasked , Unmasked } from "@apollo/client/masking" ;
3434import { maskFragment , maskOperation } from "@apollo/client/masking" ;
3535import type { DeepPartial } from "@apollo/client/utilities" ;
36- import { print , verifyDocumentType } from "@apollo/client/utilities" ;
36+ import {
37+ checkDocument ,
38+ print ,
39+ verifyDocumentType ,
40+ } from "@apollo/client/utilities" ;
3741import { AutoCleanedWeakCache , cacheSizes } from "@apollo/client/utilities" ;
3842import {
3943 addNonReactiveToNamedFragments ,
@@ -274,7 +278,7 @@ export class QueryManager {
274278 "mutation option is required. You must specify your GraphQL document in the mutation option."
275279 ) ;
276280
277- verifyDocumentType ( mutation , OperationTypeNode . MUTATION ) ;
281+ checkDocument ( mutation , OperationTypeNode . MUTATION ) ;
278282
279283 invariant (
280284 fetchPolicy === "network-only" || fetchPolicy === "no-cache" ,
@@ -788,7 +792,7 @@ export class QueryManager {
788792 T ,
789793 TVariables extends OperationVariables = OperationVariables ,
790794 > ( options : WatchQueryOptions < TVariables , T > ) : ObservableQuery < T , TVariables > {
791- verifyDocumentType ( options . query , OperationTypeNode . QUERY ) ;
795+ checkDocument ( options . query , OperationTypeNode . QUERY ) ;
792796
793797 const query = this . transform ( options . query ) ;
794798
@@ -826,7 +830,7 @@ export class QueryManager {
826830 options : QueryOptions < TVars , TData > ,
827831 queryId = this . generateQueryId ( )
828832 ) : Promise < QueryResult < MaybeMasked < TData > > > {
829- verifyDocumentType ( options . query , OperationTypeNode . QUERY ) ;
833+ checkDocument ( options . query , OperationTypeNode . QUERY ) ;
830834
831835 const query = this . transform ( options . query ) ;
832836
@@ -1031,7 +1035,7 @@ export class QueryManager {
10311035 extensions = { } ,
10321036 } = options ;
10331037
1034- verifyDocumentType ( query , OperationTypeNode . SUBSCRIPTION ) ;
1038+ checkDocument ( query , OperationTypeNode . SUBSCRIPTION ) ;
10351039
10361040 query = this . transform ( query ) ;
10371041 variables = this . getVariables ( query , variables ) ;
0 commit comments