spec/support/star_wars/schema.rb in graphql-1.9.6 vs spec/support/star_wars/schema.rb in graphql-1.9.7
- old
+ new
@@ -62,11 +62,10 @@
end
end
class CustomBaseEdgeType < GraphQL::Types::Relay::BaseEdge
node_type(BaseType)
- graphql_name "CustomBaseEdge"
field :upcased_name, String, null: true
field :upcased_parent_name, String, null: true
field :edge_class_name, String, null: true
def edge_class_name
@@ -451,10 +450,10 @@
type_name, id = GraphQL::Schema::UniqueWithinType.decode(node_id)
StarWars::DATA[type_name][id]
end
def self.id_from_object(object, type, ctx)
- GraphQL::Schema::UniqueWithinType.encode(type.name, object.id)
+ GraphQL::Schema::UniqueWithinType.encode(type.graphql_name, object.id)
end
lazy_resolve(LazyWrapper, :value)
lazy_resolve(LazyLoader, :value)