-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Unable to apply constraints to a new Apollo server project #52
Comments
It looks like you're using |
During ongoing discussions over at: neo4j-graphql/neo4j-graphql-js#562 - I have been testing around this library and have a question about the working ideas of this library. Entities seem to be added into the database regardless of whether or not they are valid?!.. Then only if one is to return the field in the GraphQL statement does the check occur and return an error response (Which aught to compose a response that contains all errors)?! I'm quite confused to implementation concepts as this doesn't at all correlate to the way that validation is usually implemented (To guard database entries against invalid data). Is there a setting that I'm missing that makes this work as I think most people would assume? Many thanks |
I have tested just the @ |
The issue you're describing is still likely caused by
|
Hi @confuser - Actually, everything is autogenerated by |
@gpaluk closing as it appears to be neo4j specific based on neo4j-graphql/neo4j-graphql-js#562 |
I am getting back no errors when I apply constraints to my new Apollo server project. I have created a minimal project to illustrate the point at:
https://github.com/gpaluk/apollo-graphql-mfp
When using the following GraphQL query in the playground, the entity gets created which is undesired:
The text was updated successfully, but these errors were encountered: