lib/graphql/subscriptions.rb in graphql-1.10.0.pre3 vs lib/graphql/subscriptions.rb in graphql-1.10.0.pre4
- old
+ new
@@ -26,11 +26,11 @@
instrumentation = Subscriptions::Instrumentation.new(schema: schema)
defn.instrument(:query, instrumentation)
defn.instrument(:field, instrumentation)
options[:schema] = schema
- schema.subscriptions = self.new(options)
+ schema.subscriptions = self.new(**options)
nil
end
# @param schema [Class] the GraphQL schema this manager belongs to
def initialize(schema:, **rest)
@@ -93,10 +93,10 @@
variables = query_data.fetch(:variables)
context = query_data.fetch(:context)
operation_name = query_data.fetch(:operation_name)
# Re-evaluate the saved query
result = @schema.execute(
- {
+ **{
query: query_string,
context: context,
subscription_topic: event.topic,
operation_name: operation_name,
variables: variables,