pub async fn graphql_batch_handler<S: Subject, M: RequestDataMiddleware<S>, Query, Mutation, Subscription>(
__arg0: Extension<Schema<Query, Mutation, Subscription>>,
__arg1: Extension<RequestId>,
middleware: Option<Extension<M>>,
subject: Option<Auth<S>>,
accept_language: AcceptLanguage,
req: GraphQLBatchRequest,
) -> GraphQLResponsewhere
Query: ObjectType + 'static,
Mutation: ObjectType + 'static,
Subscription: SubscriptionType + 'static,
Expand description
Handler for batch requests.
RequestId, Option<Subject>
and AcceptLanguage will be added to the GraphQL context before
executing the request on the schema.
This handler expects two extensions:
Schema<Query, Mutation, Subscription>
with the GraphQL SchemaRequestId
with the request id (see RequestIdLayer)
And optionally:
RequestDataMiddleware<Subject>
with the RequestDataMiddleware