Skip to content

Commit 72b181e

Browse files
authored
Remove schema data from client message to devtool (#1362)
1 parent 2fe2682 commit 72b181e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/ten-lions-begin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"apollo-client-devtools": patch
3+
---
4+
5+
Remove schema data from client message to devtool

src/extension/tab/helpers.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {
77
} from "graphql/language";
88
import type { QueryData, Variables } from "../../application/types/scalars";
99
import { getPrivateAccess } from "../../privateAccess";
10+
import { getOperationName } from "@apollo/client/utilities";
1011

1112
export type QueryInfo = {
1213
document: DocumentNode;
@@ -25,7 +26,10 @@ export function getQueries(
2526
const { document, variables } = observableQuery.queryInfo;
2627
const diff = observableQuery.queryInfo.getDiff();
2728
if (!document) return;
28-
29+
const name = getOperationName(document);
30+
if (name === "IntrospectionQuery") {
31+
return;
32+
}
2933
queries.push({
3034
document,
3135
variables,

0 commit comments

Comments
 (0)