Apollo GraphQL Server: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record> is not assignable to Application<Record>
I am setting up an Express-Typescript application to create a GraphQL server using ApolloServer. However, I encountered a type error while trying to use expressMiddleware for my GraphQL endpoint. Here’s the code: