Page Contents

Home > @loopback/graphql > GraphQLServer > middleware

GraphQLServer.middleware() method

Register a GraphQL middleware

Signature:

middleware<T = unknown>(middleware: Middleware<T>): Binding<Middleware<T>>;

Parameters

Parameter Type Description
middleware Middleware<T> GraphQL middleware

Returns:

Binding<Middleware<T>>