@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/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -341,13 +341,9 @@ const FILTER_OPERATORS = {
|
|
|
341
341
|
};
|
|
342
342
|
},
|
|
343
343
|
$exists: (key, paramIndex, value) => {
|
|
344
|
-
const
|
|
345
|
-
if (value === false) return {
|
|
346
|
-
sql: `NOT (metadata ? '${jsonPathKey}')`,
|
|
347
|
-
needsValue: false
|
|
348
|
-
};
|
|
344
|
+
const existsSql = key.includes(".") ? `${getJsonExtractExpr(key)} IS NOT NULL` : `metadata ? '${parseJsonPathKey(key)}'`;
|
|
349
345
|
return {
|
|
350
|
-
sql:
|
|
346
|
+
sql: value === false ? `NOT (${existsSql})` : existsSql,
|
|
351
347
|
needsValue: false
|
|
352
348
|
};
|
|
353
349
|
},
|