@mastra/spanner 1.6.5 → 1.6.6
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.js
CHANGED
|
@@ -4909,6 +4909,12 @@ var ExperimentsSpanner = class ExperimentsSpanner extends ExperimentsStorage {
|
|
|
4909
4909
|
conditions.push(`${quoteIdent("status", "column name")} = @status`);
|
|
4910
4910
|
params.status = args.status;
|
|
4911
4911
|
}
|
|
4912
|
+
(args.tags ?? []).forEach((tag, i) => {
|
|
4913
|
+
const param = `tag${i}`;
|
|
4914
|
+
const tagsCol = quoteIdent("tags", "column name");
|
|
4915
|
+
conditions.push(`(${tagsCol} IS NOT NULL AND EXISTS (SELECT 1 FROM UNNEST(JSON_QUERY_ARRAY(${tagsCol})) AS t WHERE JSON_VALUE(t) = @${param}))`);
|
|
4916
|
+
params[param] = tag;
|
|
4917
|
+
});
|
|
4912
4918
|
if (args.filters) {
|
|
4913
4919
|
const { organizationId, projectId } = args.filters;
|
|
4914
4920
|
if (organizationId !== void 0) {
|