lib/graphql/schema/printer.rb in graphql-1.9.21 vs lib/graphql/schema/printer.rb in graphql-1.10.0.pre1
- old
+ new
@@ -58,12 +58,10 @@
@schema = schema
end
# Return the GraphQL schema string for the introspection type system
def self.print_introspection_schema
- query_root = ObjectType.define(name: "Root") do
- field :throwaway_field, types.String
- end
+ query_root = ObjectType.define(name: "Root")
schema = GraphQL::Schema.define(query: query_root)
introspection_schema_ast = GraphQL::Language::DocumentFromSchemaDefinition.new(
schema,
except: ->(member, _) { member.name == "Root" },