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

Related issues

espoal picture espoal  路  3Comments

veeramarni picture veeramarni  路  3Comments

attdona picture attdona  路  3Comments

hiucimon picture hiucimon  路  3Comments

mathroc picture mathroc  路  3Comments