Skip to content

Commit

Permalink
Remove schema data from client message to devtool (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
hehaijin committed May 9, 2024
1 parent 2fe2682 commit 72b181e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/ten-lions-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"apollo-client-devtools": patch
---

Remove schema data from client message to devtool
6 changes: 5 additions & 1 deletion src/extension/tab/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type {
} from "graphql/language";
import type { QueryData, Variables } from "../../application/types/scalars";
import { getPrivateAccess } from "../../privateAccess";
import { getOperationName } from "@apollo/client/utilities";

export type QueryInfo = {
document: DocumentNode;
Expand All @@ -25,7 +26,10 @@ export function getQueries(
const { document, variables } = observableQuery.queryInfo;
const diff = observableQuery.queryInfo.getDiff();
if (!document) return;

const name = getOperationName(document);
if (name === "IntrospectionQuery") {
return;
}
queries.push({
document,
variables,
Expand Down

0 comments on commit 72b181e

Please sign in to comment.