Cosmos db java api result same record in a list

Author: Rahul Singhai

Originally Sourced from:

I am using cosmos client in java for connecting Cosmos db. I am successful to get the data but when there are multiple records matching the where condition i get the same elements in the list.for example if 10 records match then also same records is coming 10 times The container has partition key . Any help