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.
@@ -1118,6 +1118,10 @@ function collectEqualityFields(where, model, typeMap) {
1118
1118
  continue;
1119
1119
  if (typeMap && model && typeMap[model]?.[key]?.isRelation)
1120
1120
  continue;
1121
+ if (value !== null && value !== void 0 && !isPlainObject(value) && !Array.isArray(value)) {
1122
+ fields.add(key);
1123
+ continue;
1124
+ }
1121
1125
  if (!value || !isPlainObject(value))
1122
1126
  continue;
1123
1127
  if (Object.keys(value).every((op) => op === "equals")) {