Closed arbejd closed 8 months ago
This PR solves the problem. https://github.com/confuser/graphql-constraint-directive/pull/223
The problem was that in these cases this.currentrFieldDef would be undefined. As we just return the function anyway if nothing is found, it makes sense to just add the optional chaining operator.
Hi! Thank you for a nice package!
I was adding a custom directive with an argument to my apollo server but validation seems mistake this for one of the @constraint directives.
Reproduction files at the bottom. TLDR: Add a QUERY directive with an argument and try to pass that.
Reproduction
index.ts
package.json