@mastra/mongodb 1.18.6-alpha.1 → 1.18.7-alpha.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.
@@ -3,7 +3,7 @@ name: mastra-mongodb
3
3
  description: Documentation for @mastra/mongodb. Use when working with @mastra/mongodb APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/mongodb"
6
- version: "1.18.6-alpha.1"
6
+ version: "1.18.7-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.18.6-alpha.1",
2
+ "version": "1.18.7-alpha.0",
3
3
  "package": "@mastra/mongodb",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -650,7 +650,7 @@ Key metadata considerations:
650
650
 
651
651
  ## Deleting vectors
652
652
 
653
- When building RAG applications, you often need to clean up stale vectors when documents are deleted or updated. Mastra provides the `deleteVectors` method that supports deleting vectors by metadata filters, making it straightforward to remove all embeddings associated with a specific document.
653
+ Use `deleteVectors` with a metadata filter to remove embeddings associated with a document. This is useful for cleaning up stale vectors after a document is deleted or updated.
654
654
 
655
655
  ### Delete by Metadata Filter
656
656
 
package/dist/index.cjs CHANGED
@@ -10,7 +10,7 @@ let _mastra_core_agent = require("@mastra/core/agent");
10
10
  let _mastra_core_evals = require("@mastra/core/evals");
11
11
  let _mastra_core_storage_domains_skills = require("@mastra/core/storage/domains/skills");
12
12
  //#region package.json
13
- var version = "1.18.6-alpha.1";
13
+ var version = "1.18.7-alpha.0";
14
14
  //#endregion
15
15
  //#region src/vector/filter.ts
16
16
  /**
@@ -4342,6 +4342,7 @@ var MongoDBExperimentsStorage = class MongoDBExperimentsStorage extends _mastra_
4342
4342
  const filter = { experimentId: args.experimentId };
4343
4343
  if (args.traceId) filter.traceId = args.traceId;
4344
4344
  if (args.status) filter.status = args.status;
4345
+ if (args.tags?.length) filter.tags = { $all: args.tags };
4345
4346
  if (args.filters) {
4346
4347
  const { organizationId, projectId } = args.filters;
4347
4348
  if (organizationId !== void 0) filter.organizationId = organizationId;