class GraphQL::Query::NullContext
This object can be `ctx` in places where there is no query
Attributes
query[R]
schema[R]
warden[R]
Public Class Methods
instance()
click to toggle source
# File lib/graphql/query/null_context.rb, line 27 def instance @instance = self.new end
new()
click to toggle source
# File lib/graphql/query/null_context.rb, line 14 def initialize @query = nil @schema = GraphQL::Schema.new @warden = NullWarden.new( GraphQL::Filter.new, context: self, schema: @schema, ) end