lib/graphql/result_cache/field.rb in graphql-result_cache-0.1.2 vs lib/graphql/result_cache/field.rb in graphql-result_cache-0.1.3
- old
+ new
@@ -7,9 +7,10 @@
end
def to_graphql
field_defn = super # Returns a GraphQL::Field
field_defn.metadata[:result_cache] = @result_cache_config
+ field_defn.metadata[:original_non_null] = true if @result_cache_config && field_defn.type.non_null?
field_defn
end
end
end
end