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

Support schema registry such as apollo-engine similar to graphql-codegen #1367

Open
kdawgwilk opened this issue May 25, 2023 · 1 comment
Open

Comments

@kdawgwilk
Copy link

Describe the solution you'd like

I would like to describe a schema config that lives in a schema registry such as Hive or Apollo engine

const supergraphConfigSchemaRegistry = {
  'apollo-engine': {
    engine: {
      apiKey: process.env.APOLLO_KEY!,
    },
    graph: '<GraphId>',
    variant: '<GraphVariant>',
  },
}

Describe alternatives you've considered

If I could pass an async function to the schema config prop I could do this fetching myself to load the schema from some remote service

Additional context

https://the-guild.dev/graphql/codegen/docs/config-reference/schema-field#apollo-engine

@kdawgwilk
Copy link
Author

Could I do this with an extension and loader?

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

1 participant