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

duplicate enum values don't work #156

Closed
goertzenator opened this issue Apr 11, 2018 · 0 comments
Closed

duplicate enum values don't work #156

goertzenator opened this issue Apr 11, 2018 · 0 comments

Comments

@goertzenator
Copy link
Contributor

Duplicated enum values in different enums such as the following do not work:

enum ZooAnimals {
   MONKEYS
   CATS
   BEARS
}

enum PetStoreAnimals {
   CATS  # uh oh
   DOGS
   PARROTS
}

A query involving zoo cats will produce an error like {invalid_enum_output,<<"ZooAnimals">>,<<"CATS">>}.

Duplicate enum values should be permitted as long as they all sit in different enums. The work around for now is to just ensure there are no duplicate enum values.

#91 talks about the enum table.

goertzenator added a commit to goertzenator/graphql-erlang that referenced this issue Apr 13, 2018
@jlouis jlouis closed this as completed in 0f4cbd0 Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant