lib/graphql/schema.rb
# Fetch an application object by its unique id
# @param id [String] A unique identifier, provided previously by this GraphQL schema
# @param ctx [GraphQL::Query::Context] The context for the current query
# @return [Any] The application object identified by `id`
Fetch an application object by its unique id
Fetch an application object by its unique id
def object_from_id(id, ctx)
      if @object_from_id_proc.nil?
        raise(GraphQL::RequiredImplementationMissingError, "Can't fetch an object for id \"#{id}\" because the schema's `object_from_id (id, ctx) -> { ... }` function is not defined")
      else
        @object_from_id_proc.call(id, ctx)
      end
    end
def object_from_id ( id , ctx ) if @object_from_id_proc . nil? raise ( GraphQL :: RequiredImplementationMissingError , "Can't fetch an object for id \"#{id}\" because the schema's `object_from_id (id, ctx) -> { ... }` function is not defined" ) else @object_from_id_proc . call ( id , ctx ) end end
Fetch an application object by its unique id
Fetch an application object by its unique id
The application object identified by `id`
The application object identified by ` id `
Any
id
A unique identifier, provided previously by this GraphQL schema
A unique identifier provided previously by this GraphQL schema
ctx
The context for the current query
The context for the current query