Skip to content
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

Introspection #21

Closed
Snarik opened this issue Mar 4, 2022 · 1 comment
Closed

Introspection #21

Snarik opened this issue Mar 4, 2022 · 1 comment

Comments

@Snarik
Copy link

Snarik commented Mar 4, 2022

Hey folks, Im trying to use gql-gateway with an apollo federator. Does gql-gateway support introspection? We're currently doing a sort of weird schema generation process that is making things rather complicated. Would be awesome if we could just introspect the service.

@segpacto
Copy link
Owner

segpacto commented Mar 7, 2022

Hello @Snarik,
Yes, it does support introspection.
The package allows to pass all the configuration available for apollo-server. You can take a look at configuration params.
You can set under apolloServerConfig the introspection.

...

const apolloServerConfig = {
  playground: { endpoint: 'gql-gateway' },
  introspection: true
}

gateway({ resolvers, localSchema, endpointsList, apolloServerConfig })
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants