Documentation: Is ParitionKey required for GetItemLinqQueryable call?
See original GitHub issueIs your feature request related to a problem? Please describe.
I would like some documentation clarifying whether or not a partition key is required when using GetItemLinqQueryable
in order for the query to be scoped to a single partition.
An example is when the LINQ used with GetItemLinqQueryable
includes a .Where(i => i.Pk == "Car");
where .Pk
is the partition key path of the container and "Car"
scopes the query to a single partition.
In this case, do I need to specify the new PartitionKey("Car")
in the request options passed to GetItemLinqQueryable
?
Describe the solution you’d like Either in the repository samples or on docs.microsoft.com, some examples showing if/when the partition key is inferred from usage in a LINQ query.
Describe alternatives you’ve considered
Currently I’m specifying the partition key value explicitly in every GetItemLinqQueryable
as opposed to using a .Where()
call.
Additional context n/a
Thanks 😊!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top GitHub Comments
@j82w, #2479
@azzimuth can you open a new issue with full exception message including the stack trace. Also provide a sample or a way to reproduce the issue if possible. The SDK should not be throwing a NullPointerException, and it should be considered a bug.