SimonDegraeve / hapi-graphql

Create a GraphQL HTTP server with Hapi.
115 stars 27 forks source link

"Teaching" the client what endpoint to use for graphql #5

Closed jeromecovington closed 8 years ago

jeromecovington commented 8 years ago

I am adapting this to work within the context of a hapi server that also defines many other "conventional" api endpoints. If I want to define an endpoint for graphql (similar to the README) in this way:

route: {
  path: '/graphql',
  config: {}
}

...is there then additional configuration that needs to happen in the client side code to "teach" the react/relay app what path to make their post/get requests to?

jeromecovington commented 8 years ago

I see this is the default in the relay docs.