MCPcopy Create free account
hub / github.com/firebase/firebase-tools / isGraphQLResponse

Function isGraphQLResponse

src/dataconnect/types.ts:341–341  ·  view source on GitHub ↗
(g: any)

Source from the content-addressed store, hash-verified

339}
340
341export const isGraphQLResponse = (g: any): g is GraphqlResponse => !!g.data || !!g.errors;
342export const isGraphQLResponseError = (g: any): g is GraphqlResponseError =>
343 !!g.error?.message || !!g.message;
344

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…