After doing a reasearch i found that document db api supports grouping, so i have implemented using linq,
How can i see the results got from the dataase?
static void Main(string[] args)
{
Program p = new Program();
var result = p.GetStartedDemo().Wait();
}
private async Task GetStartedDemo()
{
var client = new DocumentClient(new Uri(EndpointUri), PrimaryKey);
var documentUri = UriFactory.CreateDocumentCollectionUri("testdb", "retrieve");
var result = client.CreateDocumentQuery<Login>(documentUri)
.Where(i => i.logevent == "success" && i._ts > 1517405472 && i._ts <= 1518010272)
.GroupBy(t => t._ts);
return result;
}
ERROR:
var result = p.GetStartedDemo().Wait();
Cannot assign implicitly typed code variable. what is the issue?