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 45 def [](key); end
instance()
click to toggle source
# File lib/graphql/query/null_context.rb, line 47 def instance @instance ||= self.new end
new()
click to toggle source
# File lib/graphql/query/null_context.rb, line 25 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 36 def [](key); end
interpreter?()
click to toggle source
# File lib/graphql/query/null_context.rb, line 38 def interpreter? true end