Skip to content

fix-or-question: graphiql and dev #144

Description

@jjangga0214

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions