Sha256: 07e9e8ea68538d2681a6da24c64a507acb71fbef2677500be15d72963a74e6d1
Contents?: true
Size: 663 Bytes
Versions: 53
Compression:
Stored size: 663 Bytes
Contents
# frozen_string_literal: true module GraphQL class Schema class Directive < GraphQL::Schema::Member class Skip < Schema::Directive description "Directs the executor to skip this field or fragment when the `if` argument is true." locations( GraphQL::Schema::Directive::FIELD, GraphQL::Schema::Directive::FRAGMENT_SPREAD, GraphQL::Schema::Directive::INLINE_FRAGMENT ) argument :if, Boolean, required: true, description: "Skipped when true." default_directive true def self.static_include?(args, ctx) !args[:if] end end end end end
Version data entries
53 entries across 53 versions & 1 rubygems