prisma-sql 1.16.0 → 1.18.0

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.
package/dist/index.cjs CHANGED
@@ -1713,7 +1713,15 @@ function buildOperator(expr, op, val, ctx, mode, fieldType) {
1713
1713
  return buildArrayOperator(expr, op, val, ctx.params, fieldType, ctx.dialect);
1714
1714
  }
1715
1715
  if (fieldType && isJsonType(fieldType)) {
1716
- return buildJsonOperator(expr, op, val, ctx.params, ctx.dialect);
1716
+ const JSON_OPS = /* @__PURE__ */ new Set([
1717
+ Ops.PATH,
1718
+ Ops.STRING_CONTAINS,
1719
+ Ops.STRING_STARTS_WITH,
1720
+ Ops.STRING_ENDS_WITH
1721
+ ]);
1722
+ if (JSON_OPS.has(op)) {
1723
+ return buildJsonOperator(expr, op, val, ctx.params, ctx.dialect);
1724
+ }
1717
1725
  }
1718
1726
  return buildScalarOperator(
1719
1727
  expr,