gateway.config.ts
import { defineConfig } from '@graphql-hive/gateway'
export const gatewayConfig = defineConfig({
port: 8080,
graphiql: true,
// ... other options are omitted for brevity
})
Let's say I execute this command.
$ hive dev \
--service auth --url http://localhost:8081/graphql \
--service api --url http://localhost:8083/graphql \
--watch
Then a successful message is printed out.
ℹ Watch mode enabled
✔ Composition successful
Saving supergraph schema to supergraph.graphql
ℹ Watching for changes
But there's no response when I access http://localhost:8080 or http://localhost:8080/graphql, etc.
I also wonder about the API endpoint.
Where should I send a request like POST for query and mutation or websocket for subscription?
Is it configurable?
(As far as I searched, there's no info from the docs.)
Thanks.
gateway.config.ts
Let's say I execute this command.
$ hive dev \ --service auth --url http://localhost:8081/graphql \ --service api --url http://localhost:8083/graphql \ --watchThen a successful message is printed out.
ℹ Watch mode enabled ✔ Composition successful Saving supergraph schema to supergraph.graphql ℹ Watching for changesBut there's no response when I access
http://localhost:8080orhttp://localhost:8080/graphql, etc.I also wonder about the API endpoint.
Where should I send a request like
POSTfor query and mutation or websocket for subscription?Is it configurable?
(As far as I searched, there's no info from the docs.)
Thanks.