MCPcopy
hub / github.com/graphql/graphiql / delete

Method delete

packages/graphiql-toolkit/src/storage/query.ts:65–77  ·  view source on GitHub ↗
(item: QueryStoreItem)

Source from the content-addressed store, hash-verified

63 }
64
65 delete(item: QueryStoreItem) {
66 const itemIndex = this.items.findIndex(
67 x =>
68 x.query === item.query &&
69 x.variables === item.variables &&
70 x.headers === item.headers &&
71 x.operationName === item.operationName,
72 );
73 if (itemIndex !== -1) {
74 this.items.splice(itemIndex, 1);
75 this.save();
76 }
77 }
78
79 fetchRecent() {
80 return this.items.at(-1);

Callers 9

toggleFavoriteMethod · 0.80
deleteFromStoreMethod · 0.80
mergeIncrementalResultFunction · 0.80
deleteFileMethod · 0.80
clearOverrideMethod · 0.80

Calls 1

saveMethod · 0.95

Tested by 1

deleteFileMethod · 0.64