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

Jun2018 spec: Handle type extensions #183

Open
jlouis opened this issue Jul 1, 2018 · 1 comment
Open

Jun2018 spec: Handle type extensions #183

jlouis opened this issue Jul 1, 2018 · 1 comment

Comments

@jlouis
Copy link
Owner

jlouis commented Jul 1, 2018

Rather than doing this work as part of #182, and in #161 we created this task for handling extensions of type schemas. It is a really nice idea, and we should definitely support it. But it is a separate issue and to keep focus in #182 I'm trying to avoid it on a first pass.

@jlouis
Copy link
Owner Author

jlouis commented Jul 8, 2018

Probable implementation path:

  • Support something like graphql:extend_schema(File) or if we have multi-tenancy: graphql:extend_schema(Schema, File). This will extend the current schema with the new definitions inside File and "monkey patch" the existing schema.
  • Typical use case: support a local schema definition for internal use only, but inherit everything from the public schema so it is a strict superset.

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

No branches or pull requests

1 participant