Sha256: d2cdb748c7592d549e5c19fa8d9d807a09a0d6e151e24956ca625712281e2128
Contents?: true
Size: 557 Bytes
Versions: 54
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true module GraphQL class Schema class Directive < GraphQL::Schema::Member class OneOf < GraphQL::Schema::Directive description "Requires that exactly one field must be supplied and that field must not be `null`." locations(GraphQL::Schema::Directive::INPUT_OBJECT) default_directive true def initialize(...) super owner.extend(IsOneOf) end module IsOneOf def one_of? true end end end end end end
Version data entries
54 entries across 54 versions & 1 rubygems