File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " apollo-client-devtools " : patch
3
+ ---
4
+
5
+ Remove schema data from client message to devtool
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import type {
7
7
} from "graphql/language" ;
8
8
import type { QueryData , Variables } from "../../application/types/scalars" ;
9
9
import { getPrivateAccess } from "../../privateAccess" ;
10
+ import { getOperationName } from "@apollo/client/utilities" ;
10
11
11
12
export type QueryInfo = {
12
13
document : DocumentNode ;
@@ -25,7 +26,10 @@ export function getQueries(
25
26
const { document, variables } = observableQuery . queryInfo ;
26
27
const diff = observableQuery . queryInfo . getDiff ( ) ;
27
28
if ( ! document ) return ;
28
-
29
+ const name = getOperationName ( document ) ;
30
+ if ( name === "IntrospectionQuery" ) {
31
+ return ;
32
+ }
29
33
queries . push ( {
30
34
document,
31
35
variables,
You can’t perform that action at this time.
0 commit comments