[Cosmos] Support arbitrary T in query_databases
and query_containers
#1928
Labels
Cosmos
The azure_cosmos crate
query_databases
and query_containers
#1928
The Cosmos
query_databases
andquery_containers
APIs currently return aPager<DatabaseProperties>
andPager<ContainerProperties>
. However, if a user projects different properties in their query, such asSELECT c.id as database_name FROM c
, default deserialization fails. We should consider supporting arbitraryT
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.The text was updated successfully, but these errors were encountered: