We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Something like http://stackoverflow.com/a/25033301/4312202 gives TestPropertiesEnum values must be an object with value names as keys.
TestPropertiesEnum values must be an object with value names as keys.
(This is a reference for future PR - i know you're busy).
The text was updated successfully, but these errors were encountered:
graphql equivalent of oneOf is more explicit about how to choose the right schema, but i think oneOf is implementable using something like
oneOf
const isValidJSValue = require('graphql/src/utilities').isValidJSValue; var PetType = new GraphQLUnionType({ name: 'Pet', types: [ DogType, CatType ], resolveType(value) { return [ DogType, CatType ].find(function(type) { return isValidJSValue(type, value); }); } });
There might be an issue with the type when it is GraphQLObjectType, since isValidJSValue expects Input types.
Sorry, something went wrong.
No branches or pull requests
Something like http://stackoverflow.com/a/25033301/4312202
gives
TestPropertiesEnum values must be an object with value names as keys.
(This is a reference for future PR - i know you're busy).
The text was updated successfully, but these errors were encountered: