using (var session = Store.Value.OpenSession())
{
var query = session.Query<RavenJObject>("Raven/DocumentsByEntityName").Where(x => (string)x.Tag == "Resources");
var countByCollection = query.ToFacets(new [] {new Facet {Name = "Type"} });
}
using (var session = Store.Value.OpenAsyncSession())
{
var query = await session.Query<RavenJObject>("Raven/DocumentsByEntityName").Where(x => (string) x.Tag == "Resources");
var countByCollection = query.ToFacetsAsync(new [] {new Facet {Name = "Type"} });
}
We fixed some async sharding issues after 3660.
I use the build 3660, I'll try to update to the latest version--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--