Closed joesaunderson closed 3 months ago
@Vincz @mcg-web, sorry for the direct tag. Can you tell me if I'm doing something obviously wrong here?
Ultimately, we wan't to use existing rules to validate fields within an input object, which is then used in a mutation.
Further debugging shows this is a naming / case sensitivity thing... the property on our entity was named $Name
where the input field was called displayName
It wasn't obvious to me they needed to match identically - is it worth calling that out in the docs? Or even better, breaking the dependency between the input field name and the entity field name being identical?
I am trying to use the validation linking as documented here but I am struggling, and getting exceptions.
Mutation:
Input Object
Exception
I noted this was mentioned here but can you help me understand what the "correct" way of linking class constraints here would be (using an input object).