lib/graphql/introspection.rb in graphql-2.0.13 vs lib/graphql/introspection.rb in graphql-2.0.14

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true module GraphQL module Introspection - def self.query(include_deprecated_args: false, include_schema_description: false, include_is_repeatable: false, include_specified_by_url: false) + def self.query(include_deprecated_args: false, include_schema_description: false, include_is_repeatable: false, include_specified_by_url: false, include_is_one_of: false) # The introspection query to end all introspection queries, copied from # https://github.com/graphql/graphql-js/blob/master/src/utilities/introspectionQuery.js <<-QUERY query IntrospectionQuery { __schema { @@ -28,9 +28,10 @@ fragment FullType on __Type { kind name description #{include_specified_by_url ? "specifiedByURL" : ""} + #{include_is_one_of ? "isOneOf" : ""} fields(includeDeprecated: true) { name description args#{include_deprecated_args ? '(includeDeprecated: true)' : ''} { ...InputValue