Sha256: 19a9491634a6c6733b2166195c2264717778fadbd4c1f45ddb799bb3483990c9
Contents?: true
Size: 685 Bytes
Versions: 50
Compression:
Stored size: 685 Bytes
Contents
# frozen_string_literal: true module GraphQL class Schema class Directive < GraphQL::Schema::Member class Include < GraphQL::Schema::Directive description "Directs the executor to include this field or fragment only 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: "Included when true." default_directive true def self.static_include?(args, ctx) !!args[:if] end end end end end
Version data entries
50 entries across 50 versions & 1 rubygems