spec/integration/mongoid/star_trek/schema.rb in graphql-1.9.6 vs spec/integration/mongoid/star_trek/schema.rb in graphql-1.9.7
- old
+ new
@@ -53,11 +53,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
@@ -411,10 +410,10 @@
type_name, id = GraphQL::Schema::UniqueWithinType.decode(node_id)
StarTrek::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)