Sha256: 2040efe8175da32b9d47ce3bb61a96b4f94790648fc66ca46acf5b9896b89b06
Contents?: true
Size: 669 Bytes
Versions: 116
Compression:
Stored size: 669 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, description: "Included 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