On validate-payload function, fields should be validated only if they are present on the payload.
However, when it was coming to special functions as count, the validation was trying to run on an empty object, and for count was throwing an error Count(XX) is not a number.
On validate-payload function, fields should be validated only if they are present on the payload.
However, when it was coming to special functions as count, the validation was trying to run on an empty object, and for count was throwing an error Count(XX) is not a number.
This PR fixes the behavior at the root.
NIT: Part of https://github.com/LaWebcapsule/directus9/issues/22