Package version:
Use Items.getChangeFeedIterator() to return an iterator that can iterate over all the changes for a partition key, feed range or an entire container.
Items.getChangeFeedIterator()
Readonly
Always returns true, changefeed is an infinite stream.
Gets an async iterator which will yield change feed results.
const options = { changeFeedStartFrom: ChangeFeedStartFrom.Now() };for await(const res of container.items.getChangeFeedIterator(options).getAsyncIterator()) { //process res} Copy
const options = { changeFeedStartFrom: ChangeFeedStartFrom.Now() };for await(const res of container.items.getChangeFeedIterator(options).getAsyncIterator()) { //process res}
Returns next set of results for the change feed.
Use
Items.getChangeFeedIterator()
to return an iterator that can iterate over all the changes for a partition key, feed range or an entire container.