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

Add option for renaming types when importing #65

Open
kbrandwijk opened this issue Jan 31, 2018 · 1 comment
Open

Add option for renaming types when importing #65

kbrandwijk opened this issue Jan 31, 2018 · 1 comment

Comments

@kbrandwijk
Copy link
Contributor

Currently the only way to rename types in a schema is not import them, but create a new type and copy the fields. It would be very useful if one could do:

# import House as Home from './mySchema.graphql'

@schickling
Copy link
Contributor

I really liked this idea! Would be great to discuss potential side-effects and problems of this approach. @freiksenet as looked quite a lot into type renaming - what are your thoughts on this?

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

2 participants