lib/graphql/query/null_context.rb in graphql-2.1.6 vs lib/graphql/query/null_context.rb in graphql-2.1.7
- old
+ new
@@ -1,9 +1,10 @@
# frozen_string_literal: true
+require "graphql/query/context"
module GraphQL
class Query
# This object can be `ctx` in places where there is no query
- class NullContext
+ class NullContext < Context
include Singleton
class NullQuery
def after_lazy(value)
yield(value)