Featured Use Case
You can get the number of revisions a document has by using the advance session method getCountFor.
In this page:
// Get the number of revisions for document 'companies/1-A"
const revisionsCount = await session.advanced.revisions.getCountFor("companies/1-A");