Hi @Ankit Kumar , welcome to Microsoft Q&A forum. Really apologize for the delay in response.
So if we understand it correctly, you want to pass a list of string and get all the documents from the Azure Cosmos DB. There could be many ways to achieve this but you can use below code to achieve the same. This code can be used after you created the 'filteredResult' (just replace the 'input' list with 'filteredResult')
List<string> input = new List<string>();
input.Add("1");
input.Add("2");
input.Add("3");
var option = new FeedOptions { EnableCrossPartitionQuery = true };
IQueryable<Family> queryable = client.CreateDocumentQuery<Family>(UriFactory.CreateDocumentCollectionUri("families", "items").ToString(), "SELECT * FROM books where books.id IN " + "('" + string.Join( "','", input) + "')",option);
List<Family> posts = queryable.ToList();
Console.WriteLine("Read count = {0}", posts.Count);
Also notice I created a model class for document properties as below:
public class Family
{
public int id;
public string city;
}
Please let us know if this helps. Or else we can discuss further on the same.
----------
If answer helps, please select 'Accept Answer' as it could help other community members looking for similar issues.