prisma-guard 1.18.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1087,6 +1087,10 @@ function collectEqualityFields(where, model, typeMap) {
1087
1087
  continue;
1088
1088
  if (typeMap && model && typeMap[model]?.[key]?.isRelation)
1089
1089
  continue;
1090
+ if (value !== null && value !== void 0 && !isPlainObject(value) && !Array.isArray(value)) {
1091
+ fields.add(key);
1092
+ continue;
1093
+ }
1090
1094
  if (!value || !isPlainObject(value))
1091
1095
  continue;
1092
1096
  if (Object.keys(value).every((op) => op === "equals")) {