Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix-or-question: graphiql and dev #144

Closed
jjangga0214 opened this issue Nov 20, 2024 · 0 comments
Closed

fix-or-question: graphiql and dev #144

jjangga0214 opened this issue Nov 20, 2024 · 0 comments
Labels
question Further information is requested

Comments

@jjangga0214
Copy link

jjangga0214 commented Nov 20, 2024

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.

@enisdenjo enisdenjo added the question Further information is requested label Nov 20, 2024
@graphql-hive graphql-hive locked and limited conversation to collaborators Nov 20, 2024
@enisdenjo enisdenjo converted this issue into discussion #146 Nov 20, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants