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
56 57 58 |
# File 'lib/graphql/relay/node.rb', line 56 def self.call(obj, args, ctx) ctx.query.schema.object_from_id(args[:id], ctx ) end |