lib/graphql/schema/scalar.rb in graphql-1.8.0.pre9 vs lib/graphql/schema/scalar.rb in graphql-1.8.0.pre10
- old
+ new
@@ -17,9 +17,10 @@
type_defn = GraphQL::ScalarType.new
type_defn.name = graphql_name
type_defn.description = description
type_defn.coerce_result = method(:coerce_result)
type_defn.coerce_input = method(:coerce_input)
+ type_defn.metadata[:type_class] = self
type_defn
end
end
end
end