lib/graphql/relay/node.rb in graphql-1.3.0 vs lib/graphql/relay/node.rb in graphql-1.4.0
- old
+ new
@@ -21,9 +21,10 @@
def self.interface
@interface ||= GraphQL::InterfaceType.define do
name "Node"
description "An object with an ID."
field :id, !types.ID, "ID of the object."
+ default_relay true
end
end
# A field resolve for finding an object by ID
module FindNode