class GraphQL::Query::NullContext
This object can be ‘ctx` in places where there is no query
Attributes
dataloader[R]
query[R]
schema[R]
warden[R]
Public Class Methods
[](key)
click to toggle source
# File lib/graphql/query/null_context.rb, line 42 def [](key); end
instance()
click to toggle source
# File lib/graphql/query/null_context.rb, line 44 def instance @instance ||= self.new end
new()
click to toggle source
# File lib/graphql/query/null_context.rb, line 22 def initialize @query = NullQuery.new @dataloader = GraphQL::Dataloader::NullDataloader.new @schema = NullSchema @warden = NullWarden.new( GraphQL::Filter.new, context: self, schema: @schema, ) end
Public Instance Methods
[](key)
click to toggle source
# File lib/graphql/query/null_context.rb, line 33 def [](key); end
interpreter?()
click to toggle source
# File lib/graphql/query/null_context.rb, line 35 def interpreter? true end