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



49
50
51
# File 'lib/graphql/relay/node.rb', line 49

def self.call(obj, args, ctx)
  args[:ids].map { |id| ctx.query.schema.object_from_id(id, ctx) }
end