Method: GraphQL::Introspection::TypeType#is_one_of
- Defined in:
- lib/graphql/introspection/type_type.rb
#is_one_of ⇒ Object
34 35 36 37 |
# File 'lib/graphql/introspection/type_type.rb', line 34 def is_one_of object.kind.input_object? && object.directives.any? { |d| d.graphql_name == "oneOf" } end |