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

RFC Extending Enums #47

Open
greabock opened this issue Dec 21, 2017 · 1 comment
Open

RFC Extending Enums #47

greabock opened this issue Dec 21, 2017 · 1 comment

Comments

@greabock
Copy link
Member

greabock commented Dec 21, 2017

enum Category {
  PROGRAMMING_LANGUAGES
  API_DESIGN
}

extend enum Category {
  UI_DESIGN
}

This syntax should work same as extend type (preprocessing).

@SerafimArts
Copy link
Member

Related with spec:
https://github.com/facebook/graphql/blob/rfc-idl/spec/Appendix%20B%20--%20Grammar%20Summary.md

It is required to add support for extending:

  • Scalar definitions
  • Interface definitions
  • Union definitions
  • Enum definitions (as in this issue)
  • Input definitions

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