Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcfunctionsdoesFragmentConditionMatch

Function: doesFragmentConditionMatch()

doesFragmentConditionMatch(schema, fragment, type): boolean

Defined in: packages/utils/src/collectFields.ts:197

Determines if a fragment is applicable to the given type.

Parameters

schema

GraphQLSchema

fragment

FragmentDefinitionNode | InlineFragmentNode

type

GraphQLObjectType

Returns

boolean