Sha256: 8e1d091622c5c720a15b2d6fa48022b637046a39d04eeaec09a9a5cdb02141a4
Contents?: true
Size: 647 Bytes
Versions: 116
Compression:
Stored size: 647 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, description: "Skipped when true." default_directive true def self.static_include?(args, ctx) !args[:if] end end end end end
Version data entries
116 entries across 116 versions & 2 rubygems