On this page

doesFragmentConditionMatch

The doesFragmentConditionMatch function exported by @graphql-tools/utils.

doesFragmentConditionMatch(schema, fragment, type): boolean

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

Determines if a fragment is applicable to the given type.

Parameters

schema

GraphQLSchema

fragment

FragmentDefinitionNode | InlineFragmentNode

type

GraphQLObjectType

Returns

boolean