I am using azure android SDK for adding new records into collection items. We don't have partition keys for our cosmos-DB. so I am passing as null for it.
it will give me the below error
partition key supplied in x-ms-partitionkey header has fewer components than defined in the collection.
Can anyone help me to come out of this?
You need to mark the property you're using as the partition key with the @PartitionKey annotation, e.g.:
in C#, we use Undefined.Value and everything will be fine.