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

Custom values for enum #165

Open
stenin-nikita opened this issue Mar 15, 2018 · 0 comments
Open

Custom values for enum #165

stenin-nikita opened this issue Mar 15, 2018 · 0 comments

Comments

@stenin-nikita
Copy link
Member

I think that it's worth implementing support for custom values for enum

Example:

type User {
  updatedAt(format: DateTimeFormat = RFC3339): DateTime!
  createdAt(format: DateTimeFormat = RFC3339): DateTime!
}

enum DateTimeFormat {
    RFC3339: "Y-m-d\TH:i:sO"
    ISO8601: "Y-m-d\TH:i:sP"
}

What do you think about 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

1 participant