@mastra/pg 1.30.0-alpha.3 → 1.30.0-alpha.4
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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/vector/sql-builder.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -317,13 +317,9 @@ const FILTER_OPERATORS = {
|
|
|
317
317
|
};
|
|
318
318
|
},
|
|
319
319
|
$exists: (key, paramIndex, value) => {
|
|
320
|
-
const
|
|
321
|
-
if (value === false) return {
|
|
322
|
-
sql: `NOT (metadata ? '${jsonPathKey}')`,
|
|
323
|
-
needsValue: false
|
|
324
|
-
};
|
|
320
|
+
const existsSql = key.includes(".") ? `${getJsonExtractExpr(key)} IS NOT NULL` : `metadata ? '${parseJsonPathKey(key)}'`;
|
|
325
321
|
return {
|
|
326
|
-
sql:
|
|
322
|
+
sql: value === false ? `NOT (${existsSql})` : existsSql,
|
|
327
323
|
needsValue: false
|
|
328
324
|
};
|
|
329
325
|
},
|