+
+ const supportedTypes = [
+ 'array',
+ 'bigint',
+ 'boolean',
+ 'buffer',
+ 'date',
+ 'function',
+ 'infinites',
+ 'null',
+ 'number',
+ 'object',
+ 'string',
+ 'symbol',
+ 'undefined',
+ 'uuid',
+ ];
+ types.forEach((t) => {
+ if (!supportedTypes.includes(t)) {
+ this.logger.error(_scope, 'unsupported type', { object, properties, types, unsupportedType: t });
+ throw new DatabaseErrors.DataValidation();
+ }
+ });
+