MCPcopy Index your code
hub / github.com/StarpTech/FastGraph / isMutation

Function isMutation

src/graphql-utils.ts:24–30  ·  view source on GitHub ↗
(document: DocumentNode)

Source from the content-addressed store, hash-verified

22}
23
24export const isMutation = (document: DocumentNode): boolean => {
25 return document.definitions.some(
26 (definition) =>
27 definition.kind === 'OperationDefinition' &&
28 definition.operation === 'mutation',
29 )
30}
31
32export function hasIntersectedTypes(
33 schema: GraphQLSchema,

Callers 1

graphqlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected