lib/graphql/schema/build_from_definition.rb in graphql-1.8.11 vs lib/graphql/schema/build_from_definition.rb in graphql-1.8.12
- old
+ new
@@ -111,10 +111,10 @@
schema
end
NullResolveType = ->(type, obj, ctx) {
- raise(NotImplementedError, "Generated Schema cannot use Interface or Union types for execution.")
+ raise(NotImplementedError, "Generated Schema cannot use Interface or Union types for execution. Implement resolve_type on your resolver.")
}
NullScalarCoerce = ->(val, _ctx) { val }
def build_enum_type(enum_type_definition, type_resolver)