spec/support/star_wars/schema.rb in graphql-1.8.5 vs spec/support/star_wars/schema.rb in graphql-1.8.6

- old
+ new

@@ -34,12 +34,16 @@ class BaseConnection < GraphQL::Types::Relay::BaseConnection edge_type(BaseEdge) end + class BaseConnectionWithoutNodes < GraphQL::Types::Relay::BaseConnection + edge_type(BaseEdge, nodes_field: false) + end + class BasesConnectionWithTotalCountType < GraphQL::Types::Relay::BaseConnection - edge_type(BaseEdge) + edge_type(BaseEdge, nodes_field: false) nodes_field field :total_count, Integer, null: true def total_count @@ -157,9 +161,10 @@ field :basesWithMaxLimitRelation, BaseConnection, null: true, max_page_size: 2, resolve: Proc.new { Base.all} field :basesWithMaxLimitArray, BaseConnection, null: true, max_page_size: 2, resolve: Proc.new { Base.all.to_a } field :basesWithDefaultMaxLimitRelation, BaseConnection, null: true, resolve: Proc.new { Base.all } field :basesWithDefaultMaxLimitArray, BaseConnection, null: true, resolve: Proc.new { Base.all.to_a } field :basesWithLargeMaxLimitRelation, BaseConnection, null: true, max_page_size: 1000, resolve: Proc.new { Base.all } + field :basesWithoutNodes, BaseConnectionWithoutNodes, null: true, resolve: Proc.new { Base.all.to_a } field :basesAsSequelDataset, BasesConnectionWithTotalCountType, null: true, connection: true, max_page_size: 1000 do argument :nameIncludes, String, required: false end