You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using limit: Int @constraint(uniqueTypeName: "Int", min: 1, max: 200),
I would expect the validation to still run. However no errors are generated.
Is this expected behavior? Is this something this library should support?
I get that conceptually there could be two types of "Int" (one with a constraint and one without) - which goes a little against the graphql schema logic. Consider throwing an assert maybe?
I'm honestly not sure what the correct path of action is here
The text was updated successfully, but these errors were encountered:
Yes, this is expected. The validation won't run in this case; as the name suggests it needs to be a unique name. Under the hood, this module auto generates a unique type for anything decorated with the directive.
The correct action would be to throw an error if it's a type name which already exists
When using
limit: Int @constraint(uniqueTypeName: "Int", min: 1, max: 200)
,I would expect the validation to still run. However no errors are generated.
Is this expected behavior? Is this something this library should support?
I get that conceptually there could be two types of "Int" (one with a constraint and one without) - which goes a little against the graphql schema logic. Consider throwing an assert maybe?
I'm honestly not sure what the correct path of action is here
The text was updated successfully, but these errors were encountered: