Reputation: 477
The documentation for Cosmos DB Change Feed mentions that the documents in Change Feed are persisted and can be processed asynchronously. The CreateDocumentFeedQuery has below prototype:
CreateDocumentChangeFeedQuery(Uri collectionLink, ChangeFeedOptions feedOptions);
So the control offered is only on the level of ChangeFeedOptions where we can specify partition key range and the start time after which we need documents.
Is there any way we can query the Change Feed by passing in a custom query as done against the Cosmos DB Collection? Like querying based on document properties?
Upvotes: 2
Views: 1489
Reputation: 15603
Right now filtering the Change Feed by a query is not supported, like you said, you can filter by PartitionKeyRangeId
and use the ContinuationToken
to iterate over the feed.
Here is the UserVoice item that tracks this request with an alternative using Spark.
Upvotes: 3