Replies: 1 comment 4 replies
-
Hi, There is no option to get the count of revisions of a given document in ETL script at this point. That's something we might consider to add via a dedicated method accessible in the script. Can you tell us more about your use case? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Googled it, didn't seem to find it. In RavenDB 5.1, is there a way to access the revisions in a SQL ETL task? I'd like to project the number of revisions to a SQL table. Thinking it might be accessible via the metadata similar to attachments, I tried this without success:
var revisions = this['@metadata']['@revisions'].Count;
loadToDocumentMetadataProjection(
{
ID: this.LegacyDocumentId,
RevisionCount: revisions
}
Beta Was this translation helpful? Give feedback.
All reactions