v0.240.0 updates Schema.subscribe
βs signature
In order to support schema extensions in subscriptions and errors that can be
raised before the execution of the subscription, we had to update the signature
of Schema.subscribe
.
Previously it was:
variable_values : Optional[Dict[ str , Any]] = None ,
context_value : Optional[Any] = None ,
root_value : Optional[Any] = None ,
operation_name : Optional[ str ] = None ,
) -> Union[AsyncIterator[GraphQLExecutionResult], GraphQLExecutionResult]:
Now it is:
variable_values : Optional[Dict[ str , Any]] = None ,
context_value : Optional[Any] = None ,
root_value : Optional[Any] = None ,
operation_name : Optional[ str ] = None ,
) -> Union[AsyncGenerator[ExecutionResult, None ], PreExecutionError]: