-
-
Notifications
You must be signed in to change notification settings - Fork 826
Enums with custom values fail to stitch correctly #510
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
Comments
Thanks! |
+1 Happened to us too. |
This is really happening, I seems like a bug, I caught this as well, but, has a tricky to you pass for this error. Try set your field enum values with the same name of your enum names, like: import { GraphQLEnumType } from 'graphql';
export default new GraphQLEnumType({
name: 'IndicatorRegisterReportEnum',
values: {
FIRST: {
value: 'FIRST',
},
SECOND: {
value: 'SECOND',
},
},
}); For me this following approach is working good! It's a way to ignore this even to be fixed! |
I have this problem with |
Cross-issue with artsy/metaphysics#836
Likely related to #501 - the comment from @freiksenet seems to be exactly the conclusion we came to
An enum like this:
When accessed via a stitched schema gets these errors:
Where it expects the lower case value, but is given the upper case enum string.
The text was updated successfully, but these errors were encountered: