Sha256: 5392be7cbd10ecfbb442273608fe7fc430e444b40fa7c1cdb01570a2bb345ef7
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true module GraphQL class Query # This object can be `ctx` in places where there is no query class NullContext attr_reader :schema, :query, :warden def initialize @query = nil @schema = GraphQL::Schema.new @warden = GraphQL::Schema::Warden.new( GraphQL::Filter.new, context: self, schema: @schema, ) end class << self extend Forwardable def instance @instance = self.new end def_delegators :instance, :query, :schema, :warden end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
graphql-1.6.2 | lib/graphql/query/null_context.rb |
graphql-1.6.1 | lib/graphql/query/null_context.rb |
graphql-1.6.0 | lib/graphql/query/null_context.rb |