Featured Use Case
A document's revisions can be counted using the session.Advanced.Revisions.GetCountFor method.
In this page:
long GetCountFor(string id);
Get the number of revisions created for a document:
var revisionsCount = session.Advanced.Revisions.GetCountFor(CompanyProfile.Id);
var revisionsCount = await asyncSession.Advanced.Revisions.GetCountForAsync(CompanyProfile.Id);