Method: GraphQL::Pagination::Connections#edge_class_for_field
- Defined in:
- lib/graphql/pagination/connections.rb
#edge_class_for_field(field) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
use an override if there is one
88 89 90 91 92 93 94 95 96 |
# File 'lib/graphql/pagination/connections.rb', line 88 def edge_class_for_field(field) conn_type = field.type.unwrap conn_type_edge_type = conn_type.respond_to?(:edge_class) && conn_type.edge_class if conn_type_edge_type && conn_type_edge_type != Pagination::Connection::Edge conn_type_edge_type else nil end end |