Mo B.
Mo B.

Reputation: 5805

Cosmos DB continuation token with different queries

When executing a Cosmos DB query, it is possible to specify a continuation token (x-ms-continuation). Cosmos DB doesn't seem to complain when a valid continuation token is specified with a query that differs from the original query.

What is the expected result of such a query? Or is it meaningless?

Upvotes: 1

Views: 442

Answers (1)

Richard
Richard

Reputation: 108975

meaningless

Yes.

You've violated the API contract, so anything is possible.

Quite possibly what you'll get is the next page, as if the second query had run, but that isn't defined behaviour. When you violate the contract, anything that looks like it is working is just an accident.

Upvotes: 1

Related Questions