lib/graphql/schema/loader.rb in graphql-1.5.5 vs lib/graphql/schema/loader.rb in graphql-1.5.6
- old
+ new
@@ -28,17 +28,17 @@
[:query, :mutation, :subscription].each do |root|
type = schema["#{root}Type"]
kargs[root] = types.fetch(type.fetch("name")) if type
end
- Schema.define(**kargs)
+ Schema.define(**kargs, raise_definition_error: true)
end
NullResolveType = ->(obj, ctx) {
raise(NotImplementedError, "This schema was loaded from string, so it can't resolve types for objects")
}
- NullScalarCoerce = ->(val) { val }
+ NullScalarCoerce = ->(val, _ctx) { val }
class << self
private
def resolve_type(types, type)