class GraphQL::LoadApplicationObjectFailedError
Raised when a argument is configured with loads: and the client provides an ID, but no object is loaded for that ID.
See GraphQL::Schema::Member::HasArguments::ArgumentObjectLoader#load_application_object_failed A hook which you can override in resolvers, mutations and input objects.
Attributes
Returns
-
GraphQL::Schema::Argument— the argument definition for the argument that was looked up
Returns
Returns
-
String— The ID provided by the client
Returns
-
Object— The value found with this ID
Public Class Methods
# File lib/graphql/load_application_object_failed_error.rb, line 27 def initialize(argument:, id:, object:, context:) @id = id @argument = argument @object = object @context = context super("No object found for `#{argument.graphql_name}: #{id.inspect}`") end
Calls superclass method
GraphQL::ExecutionError::new