I was looking to use the @pattern directive to validate that each String within an [String] query argument matches a given pattern (for example, 4 characters).
Is there a trick/workaround to getting this to work or is it a gap at the moment?
As an example, something like below would make sure that each icao provided is 4 characters in length
type Query {
airports(
icaos: [String] @Pattern(regexp: "^[a-zA-Z]{4}$")
)
}
PS - this library is proving to be super helpful for validation conditions. Great stuff!