Do I need to have a property set as partitionKey to be on resource? #2461
Unanswered
adamsosinski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm integrating CosmosDb into my solution, similar to the code below.
And the Document looks like this
Trying different approaches I came to the conclusion that
PartitionKey
property is required.This makes me question what is the reason for providing partitionKey into
ReplaceItemAsync()
?I have figured out that there is a validation done against it. But, I thought that it will use that provided value as partitionKey and set it on the document, so there is no need to have it on the class representing the document.
Beta Was this translation helpful? Give feedback.
All reactions