Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cosmos] Support arbitrary T in query_databases and query_containers #1928

Open
analogrelay opened this issue Nov 22, 2024 · 0 comments
Open
Assignees
Labels
Cosmos The azure_cosmos crate

Comments

@analogrelay
Copy link
Member

The Cosmos query_databases and query_containers APIs currently return a Pager<DatabaseProperties> and Pager<ContainerProperties>. However, if a user projects different properties in their query, such as SELECT c.id as database_name FROM c, default deserialization fails. We should consider supporting arbitrary T values here, like the C# SDK does.

It's worth noting that today a user can still use deserialize_body_into to deserialize the body into a different type, so we could decide this scenario is already covered by that API.

@analogrelay analogrelay added the Cosmos The azure_cosmos crate label Nov 22, 2024
@analogrelay analogrelay self-assigned this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cosmos The azure_cosmos crate
Projects
None yet
Development

No branches or pull requests

1 participant