Error:
Failed to parse String literal at velocity...
GraphQLSchema:
type User @model {
id: ID!
email: String! @assert(condition: ".matches(\"[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}\")")
In vtl, I get
$ctx.args.input.email.matches("[a-z0-9.%+-]+@[a-z0-9$ctx.args.input.email.-]+\$ctx.args.input.email[a-z]{2,4}")
instead of
$ctx.args.input.email.matches("[a-z0-9.%+-]+@[a-z0-9.-]+\.email[a-z]{2,4}")
Error: Failed to parse String literal at velocity...
GraphQLSchema: type User @model { id: ID! email: String! @assert(condition: ".matches(\"[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}\")")
In vtl, I get $ctx.args.input.email.matches("[a-z0-9.%+-]+@[a-z0-9$ctx.args.input.email.-]+\$ctx.args.input.email[a-z]{2,4}") instead of $ctx.args.input.email.matches("[a-z0-9.%+-]+@[a-z0-9.-]+\.email[a-z]{2,4}")