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

Function hasIntersectedTypes

src/graphql-utils.ts:32–39  ·  view source on GitHub ↗
(
  schema: GraphQLSchema,
  document: DocumentNode,
  matchingTypes: string[],
)

Source from the content-addressed store, hash-verified

30}
31
32export function hasIntersectedTypes(
33 schema: GraphQLSchema,
34 document: DocumentNode,
35 matchingTypes: string[],
36): boolean {
37 const types = extractTypes(schema, document)
38 return matchingTypes.some((typeName) => types.has(typeName))
39}
40
41export function extractTypes(
42 schema: GraphQLSchema,

Callers 2

graphqlFunction · 0.90

Calls 2

extractTypesFunction · 0.85
hasMethod · 0.80

Tested by

no test coverage detected