On this page
You can define filters on incoming queries that Atlas App Services evaluates and applies before its initial query to your MongoDB cluster. Adding a filter to a collection allows you to control the shape of queried documents using projection filters and can improve query performance by reducing the number of documents for which App Services needs to evaluate a role.
Every filter consists of an Apply When expression and a Filter Query document. When App Services receives an incoming MongoDB query, it evaluates the Apply When expression of all filters on the collection and merges the Filter Query document into the incoming query.
This guide walks through creating one or more filters for a collection.
This guide requires a linked MongoDB Atlas data source.