Search
AI-generatedSummary
Search documents within a Firestore collection using custom filter conditions.
Inputs
- path (required) — Path to the collection to search (e.g., 'users'). Supports wildcard subcollection syntax for querying nested subcollections (e.g., 'users/{}/orders').
- filters — Collection of filter conditions. Each condition defines a document field (key), an operator (e.g., '==', 'array-contains'), a value, and a type (e.g., 'string', 'timestamp').
Output shape
A list of items, each containing the document ID, full path, and document data.
Returns an array of all matching documents. The search supports complex queries including multiple conditions, array comparisons, and geo-points, but complex queries may require manual composite indexes in Firestore.
Examples
Example 1: Find users over 18
Path: 'users' | Filters: Key='age', Operator='>=', Value='18', Type='number'
Example 2: Filter active users by email
Path: 'users' | Filters: Key='status', Operator='==', Value='active', Type='string'