Skip to content

Commit 492a79d

Browse files
authored
Merge pull request rmosolgo#3995 from rmosolgo/connection-cleanup
Remove needless connection behavior
2 parents b618e1d + 61b8ba0 commit 492a79d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/graphql/types/relay/connection_behaviors.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,22 +148,6 @@ def add_page_info_field(obj_type)
148148
obj_type.field :page_info, GraphQL::Types::Relay::PageInfo, null: false, description: "Information to aid in pagination."
149149
end
150150
end
151-
152-
# By default this calls through to the ConnectionWrapper's edge nodes method,
153-
# but sometimes you need to override it to support the `nodes` field
154-
def nodes
155-
@object.edge_nodes
156-
end
157-
158-
def edges
159-
if @object.is_a?(GraphQL::Pagination::Connection)
160-
@object.edges
161-
else
162-
context.schema.after_lazy(object.edge_nodes) do |nodes|
163-
nodes.map { |n| self.class.edge_class.new(n, object) }
164-
end
165-
end
166-
end
167151
end
168152
end
169153
end

0 commit comments

Comments
 (0)