Module: GraphQL::Relay::Node::FindNodes
- Defined in:
- lib/graphql/relay/node.rb
Overview
A field resolve for finding objects by IDs
Class Method Summary collapse
Class Method Details
.call(obj, args, ctx) ⇒ Object
54 55 56 |
# File 'lib/graphql/relay/node.rb', line 54 def self.call(obj, args, ctx) args[:ids].map { |id| ctx.query.schema.object_from_id(id, ctx) } end |