graphQLIncludeDirective top-level property
Implementation
final graphQLIncludeDirective = GraphQLDirective(
name: 'include',
description: 'Directs the executor to include this field or'
' fragment only when the `if` argument is true.',
locations: [
DirectiveLocation.FIELD,
DirectiveLocation.FRAGMENT_SPREAD,
DirectiveLocation.INLINE_FRAGMENT,
],
inputs: [
GraphQLFieldInput<bool, bool>(
'if',
graphQLBoolean.nonNull(),
description: 'Included when true.',
),
],
);