lib/graphql/schema/scalar.rb in graphql-1.13.0 vs lib/graphql/schema/scalar.rb in graphql-1.13.1
- old
+ new
@@ -12,9 +12,11 @@
def coerce_result(val, ctx)
val
end
+ prepend Schema::Member::CachedGraphQLDefinition::DeprecatedToGraphQL
+
def to_graphql
type_defn = GraphQL::ScalarType.new
type_defn.name = graphql_name
type_defn.description = description
type_defn.coerce_result = method(:coerce_result)