graphQLSkipDirective top-level property

GraphQLDirective graphQLSkipDirective
final

Implementation

final graphQLSkipDirective = GraphQLDirective(
  name: 'skip',
  description: 'Directs the executor to skip this field or'
      ' fragment when the `if` argument is true.',
  locations: [
    DirectiveLocation.FIELD,
    DirectiveLocation.FRAGMENT_SPREAD,
    DirectiveLocation.INLINE_FRAGMENT,
  ],
  inputs: [
    GraphQLFieldInput<bool, bool>(
      'if',
      graphQLBoolean.nonNull(),
      description: 'Skipped when true.',
    ),
  ],
);