Earlier I used pure graphQL for Laravel and I didn't have a problem with it, because the whole validation could be done in files in ../GraphQL/mutations/. However, I have now started using the lighthouse and many things are done differently. For example, I have this mutation:
type Mutation {
createUser(
name: String @rules(apply: ["required", "min:2"])
age: Int!
): User @create
}
How can I add my own validation here? For example, I would like the user's age to be at least 10 years back from the current year.