Checks the custom fields a tool received before the tool saves them. Tool calls skip the checks Vendure's GraphQL API does on custom fields, so call this in any tool that accepts them.
It refuses a key that is not a custom field of entityName, an internal field, and a
non-public field sent by a Shop API caller. It then runs Vendure's normal custom field
validation on the rest. Any refusal throws a UserInputError. A relation field uses its
input name, so a field named image arrives as imageId.
Example
Parameters
RequestContextInjectorkeyof CustomFieldsRecord<string, unknown> | undefinedArchitecture reviews, custom plugin work, migrations, ongoing support. Get a hand from the team that builds Vendure.