module GraphQL::Query::Runnable
Code shared with Partial
Public Instance Methods
Source
# File lib/graphql/query.rb, line 57 def after_lazy(value, &block) if !defined?(@runtime_instance) @runtime_instance = context.namespace(:interpreter_runtime)[:runtime] end if @runtime_instance @runtime_instance.minimal_after_lazy(value, &block) else @schema.after_lazy(value, &block) end end
Source
# File lib/graphql/query.rb, line 87 def arguments_cache @arguments_cache ||= Execution::Interpreter::ArgumentsCache.new(self) end
# File lib/graphql/query.rb, line 83 def arguments_for(ast_node, definition, parent_object: nil) arguments_cache.fetch(ast_node, definition, parent_object) end
Node-level cache for calculating arguments. Used during execution and query analysis.
Parameters
-
ast_node(GraphQL::Language::Nodes::AbstractNode) -
definition(GraphQL::Schema::Field) -
parent_object(GraphQL::Schema::Object)
Returns
-
Hash{Symbol => Object}