Open jewells07 opened 4 months ago
This is a common use case I have across applications.
Todo.completionDate
must be set if Todo.status = 'COMPLETED'
not sure if this helps, but i wrote this some time back and we use it a lot.
https://github.com/craig-at-metashield-io/graphql-validation-transformers
it does some basic number / string validation, such as min-max, length, regex, etc.
i was investigating if this is available yet on gen2, but it looks like not.
Describe the feature you'd like to request
We need the feature of validation on the fields. It may be with regex or any other better way.
Describe the solution you'd like
If we have a schema that has a field for price, the price would be a minimum of $5. It will be helpful in this kind of scenario. or username character, there will be many that this feature can very well handle for this kind of scenario. Better if this feature comes in field level & schema level both way.
Describe alternatives you've considered
Currently, we can handling the extra APIs in backend to pass the validations
Additional context
No response
Is this something that you'd be interested in working on?
Would this feature include a breaking change?