[cosmos] continuation Token is not returned with an ORDER BY query node JS SDK #32367
Labels
Client
This issue points to a problem in the data-plane of the library.
Cosmos
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Package Name: azure/cosmos
Package Version: 4.2.0
Operating system: window
nodejs: v 20.15.1
typescript
Describe the bug
Continuation tokens are undefined for ORDER BY queries. The query SELECT * FROM a returns a continuation token as expected, however SELECT * FROM a ORDER BY a._ts ASC send undefended
To Reproduce
The following node js script connects to a container and performs the simplest query with ORDER BY, if you've got more than 10 items, it'll return 10 items, but no continuation token. Remove the ORDER BY, and it works fine:
let query =
SELECT * FROM students u WHERE u.type = @entityType`;// its in my db container where studentId is partition key
@CosmosPartitionKey('studentId')
export class StudnetsContainer {
studentId: string;
}
`
The text was updated successfully, but these errors were encountered: