Actions10
Update Many
AI-generatedSummary
Update multiple documents in an Astra DB collection based on provided filter criteria and update operations.
Inputs
- keyspace (required) — Astra DB keyspace name.
- collection (required) — Astra DB collection name.
- filter (required) — Filter criteria to find documents to update.
- update (required) — Update operations to apply.
- options — Additional options for the update operation, including upsert and timeout settings.
Output shape
no body — success/failure only
Ensure the filter criteria matches the intended documents; any match will be updated based on the specified update operations.
Examples
Example 1: You need to update the status of all orders in the 'orders' collection where the status is 'pending' to 'processed'.
Set keyspace to 'ecommerce', collection to 'orders', filter to {'status': 'pending'}, and update to {'$set': {'status': 'processed'}}.