dotnet / dotnet/efcore

Cosmos: Warn when the partition key is given via both WithPartitionKey() and the predicate

Open
#34,194 0 comments 0 reactions 0 assignees View on GitHub
area-cosmos area-query
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

We support two ways to specify the partition key: via WithPartitionKey() and via the predicate (Where).

The user may use both means in the same query; either the values are uselessly repeated (the query should be cleaned up), or worse, they're not, and then the query is guaranteed to never return any results. We can warn about this case.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.