Skip to content
New issue

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

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

Already on GitHub? # to your account

Support multiple GraphQL schemas #273

Open
salmankhilji opened this issue Oct 2, 2021 · 0 comments
Open

Support multiple GraphQL schemas #273

salmankhilji opened this issue Oct 2, 2021 · 0 comments

Comments

@salmankhilji
Copy link

I fail to see how the build.yaml file can support more than a single schema. In my simple command line app, I need to fetch a list of my repos from both GitLab and GitHub. How can I add multiple schemas to a single project?

Discord discussions for #ferry suggest to merge the schemas. However, with GitLab and GitHub being so closely related, there are conflicts with the schemas. For example:

GitLab has:

type Repository {
  ...
}

Whereas, GitHub has:

type Repository implements Node & PackageOwner & ProjectOwner & RepositoryInfo & Starrable & Subscribable & UniformResourceLocatable {
  ...
}

I suppose I could create two separate packages, each containing a its own build.yaml and a schema file, and then have my CLI app depend on the two packages. However, having to split a simple app into multiple packages seems an overkill due to this restriction.

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

No branches or pull requests

1 participant