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,