Module: GraphQL::Types::Relay::ConnectionBehaviors
- Extended by:
- Forwardable
- Included in:
- BaseConnection
- Defined in:
- lib/graphql/types/relay/connection_behaviors.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#edges ⇒ Object
196 197 198 199 200 201 202 203 204 |
# File 'lib/graphql/types/relay/connection_behaviors.rb', line 196 def edges # Assume that whatever authorization needed to happen # already happened at the connection level. if (current_runtime_state = Fiber[:__graphql_runtime_info]) query_runtime_state = current_runtime_state[context.query] query_runtime_state. = @object. end @object.edges end |
#nodes ⇒ Object
206 207 208 209 210 211 212 213 214 |
# File 'lib/graphql/types/relay/connection_behaviors.rb', line 206 def nodes # Assume that whatever authorization needed to happen # already happened at the connection level. if (current_runtime_state = Fiber[:__graphql_runtime_info]) query_runtime_state = current_runtime_state[context.query] query_runtime_state. = @object. end @object.nodes end |