class GraphQL::Query::Context::Scoped
Public Class Methods
Source
# File lib/graphql/query/context.rb, line 347 def initialize(scoped_context, path) @path = path @scoped_context = scoped_context end
Public Instance Methods
Source
# File lib/graphql/query/context.rb, line 352 def merge!(hash) @scoped_context.merge!(hash, at: @path) end
Source
# File lib/graphql/query/context.rb, line 356 def set!(key, value) @scoped_context.merge!({ key => value }, at: @path) nil end