Skip to content

Cosmos - FeedOptions is missing parameters from RequestOptions, unable to set consistency level for running queries #27336

Open

Description

Is your feature request related to a problem? Please describe.
The signature to query in a container is just:
query<T>(query: string | SqlQuerySpec, options?: FeedOptions): QueryIterator<T>;

Which doesn't seem to provide a way to specify request options.

Describe the solution you'd like
Would like to be able to add some of the parameters unique to RequestOptions like consistency level

Describe alternatives you've considered
Consistency level could be set via a default on the connection level, which means that in theory you could make a second connection object to use for queries that can have a lower consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Cosmoscustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions