NODE-7967Needs Review

[Mastra] Support native vector search pre-filtering in BYOC

h2. TL;DR Mastra's MongoDB store can apply metadata filters inside Atlas Vector Search (native pre-filtering) when you list the filter fields in {{{}filterFields{}}}. That works on collections Mastra manages. It does not work on a bring-your-own collection (BYOC), where Mastra indexes your existing operational collection. Make {{filterFields}} work there too. h2. Context Mastra is a TypeScript framework for building AI agents. Its MongoDB store can keep vectors in a collection it manages,

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
ABX
Labels
Tags and classification
node-internal