lib/graphql/schema/object.rb in graphql-2.0.21 vs lib/graphql/schema/object.rb in graphql-2.0.22

- old
+ new

@@ -66,10 +66,10 @@ end else maybe_lazy_auth_val end - context.schema.after_lazy(auth_val) do |is_authorized| + context.query.after_lazy(auth_val) do |is_authorized| if is_authorized self.new(object, context) else # It failed the authorization check, so go to the schema's authorized object hook err = GraphQL::UnauthorizedError.new(object: object, type: self, context: context)