Apollo-server: Is there a way to change the graphql endpoint name?

Created on 4 Aug 2018  路  1Comment  路  Source: apollographql/apollo-server

I'm using apollo-server-hapi with default configuration like the Readme's example.

Is there a way to change the graphql endpoint name?

Most helpful comment

You can pass a path parameter to applyMiddleware

const server = new ApolloServer({
  typeDefs,
  resolvers,
});

server.applyMiddleware({
  app, 
  path: '/api'
});

>All comments

You can pass a path parameter to applyMiddleware

const server = new ApolloServer({
  typeDefs,
  resolvers,
});

server.applyMiddleware({
  app, 
  path: '/api'
});
Was this page helpful?
0 / 5 - 0 ratings