Takes a document id and returns the variant type for that document If it's a document that starts with version. it's a version document. If it's a document that starts with drafts. it's a draft document. Otherwise, it's a published document.
version.
version
drafts.
draft
published
Takes a document id and returns the variant type for that document If it's a document that starts with
version.it's aversiondocument. If it's a document that starts withdrafts.it's adraftdocument. Otherwise, it's apublisheddocument.