I'm using apollo-server-hapi with default configuration like the Readme's example.
Is there a way to change the graphql endpoint name?
You can pass a path parameter to applyMiddleware
const server = new ApolloServer({
typeDefs,
resolvers,
});
server.applyMiddleware({
app,
path: '/api'
});
Most helpful comment
You can pass a path parameter to applyMiddleware