-
Notifications
You must be signed in to change notification settings - Fork 147
Schema Transforms are not applied when using graphql-constraint-directive #562
Comments
Hey @gpaluk, thanks for bringing this here, and for sharing your code! It looks like you're using the most recent version of neo4j-graphql-js, 2.18.0. We updated |
@michaeldgraham I wonder if there might be an ETA on this or if I can assist with anything? I'm reviewing the viability of this stack but have a close deadline. It seems like this could possibly a minor issue and don't want to have to rule it out. Thank you. |
Hey @gpaluk, so it looks like the upgrade of So, we've updated the library today to v2.19.0, which internally uses the most recent versions of Edit: It looks like there's still a problem :( I'll be working on trying to figure out what's going on with the dependencies, we should have it fixed up shortly Edit 2: Alrighty! It should work with the current version of |
@michaeldgraham Stellar start, it seems close for some fields however when I add the @unique generated annotation to the username, that is still ignored also the email constraint doesn't seem to being applied to my example field so it feels like there is some flakiness still. So many thanks for taking a look at this though, like I say, it seems close. [Edit] |
Heyy @gpaluk, so to use the It looks like the |
That's correct, I'd commented that line out due to the previous version crashing. I can confirm that both the length and unique annotations being applied to using the following GraphQL:
As can be seen above, |
@michaeldgraham - After re-reading your post, I think that you might be alluding to the functionality that I am referring. Am I correct in assuming that there needs to be a check on the data validity earlier in the entity processing system? |
Bumping this thread. Would love to be able to use the @constraint directive as you said @michaeldgraham: carrying over the "mutation argument input schema from its use on object type fields." |
I am getting back no errors when I apply constraints to my new Neo4J Apollo 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:
I filed an issue at: confuser/graphql-constraint-directive#52 and they redirected me here.
The text was updated successfully, but these errors were encountered: