Module: GraphQL::Relay::Node::FindNode

Defined in:
lib/graphql/relay/node.rb

Overview

A field resolve for finding an object by ID

Class Method Summary collapse

Class Method Details

.call(obj, args, ctx) ⇒ Object



61
62
63
# File 'lib/graphql/relay/node.rb', line 61

def self.call(obj, args, ctx)
  ctx.query.schema.object_from_id(args[:id], ctx )
end