Method: GraphQL::Query::NullContext#initialize
- Defined in:
- lib/graphql/query/null_context.rb
#initialize ⇒ NullContext
Returns a new instance of NullContext.
23 24 25 26 27 28 29 30 |
# File 'lib/graphql/query/null_context.rb', line 23 def initialize @query = NullQuery.new @dataloader = GraphQL::Dataloader::NullDataloader.new @schema = NullSchema @warden = Schema::Warden::NullWarden.new(context: self, schema: @schema) @types = @warden.visibility_profile freeze end |