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

Method fetchAll

packages/graphiql-toolkit/src/storage/query.ts:83–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 }
82
83 fetchAll() {
84 const raw = this.storage.get(this.key);
85 if (raw) {
86 return JSON.parse(raw)[this.key] as Array<QueryStoreItem>;
87 }
88 return [];
89 }
90
91 push(item: QueryStoreItem) {
92 const items = [...this.items, item];

Callers 2

constructorMethod · 0.95
constructorMethod · 0.80

Calls 2

parseMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected