The ArgumentsTransformer should not validated arguments that are not Input or list of Input.
For example, if we have a scalar returning an invalid object, we should not validate it on our side.
In our case for example, we have scalars that turn id into doctrine entities so we can get entities in our methods. The scalar is in charge of validating that the object exists, but we shouldn't call the validation on the object returned by the scalar. Anyway, in a query or mutation, we should only validate inputted data through InputObject.
The
ArgumentsTransformer
should not validated arguments that are notInput
or list ofInput
.For example, if we have a scalar returning an invalid object, we should not validate it on our side.
In our case for example, we have scalars that turn
id
into doctrine entities so we can get entities in our methods. The scalar is in charge of validating that the object exists, but we shouldn't call the validation on the object returned by the scalar. Anyway, in a query or mutation, we should only validate inputted data throughInputObject
.