Client for executing Version History operations through GraphQL.
This class provides an easy way to create version labels with proper server-side snapshot capture from a client application.
const vhClient = new GraphQLVersionHistoryClient(graphQLProvider);const result = await vhClient.CreateLabel({ Name: 'Before Refactor', Scope: 'Record', EntityName: 'MJ: AI Prompts', RecordKeys: [{ Key: 'ID', Value: recordId }], IncludeDependencies: true,});if (result.Success) { console.log(`Created label ${result.LabelID} with ${result.ItemsCaptured} items`);} Copy
const vhClient = new GraphQLVersionHistoryClient(graphQLProvider);const result = await vhClient.CreateLabel({ Name: 'Before Refactor', Scope: 'Record', EntityName: 'MJ: AI Prompts', RecordKeys: [{ Key: 'ID', Value: recordId }], IncludeDependencies: true,});if (result.Success) { console.log(`Created label ${result.LabelID} with ${result.ItemsCaptured} items`);}
Create a version label with full server-side snapshot capture.
This invokes the VersionHistoryEngine on the server which:
If params.OnProgress is provided, subscribes to PushStatusUpdates for real-time progress during the operation.
params.OnProgress
Client for executing Version History operations through GraphQL.
This class provides an easy way to create version labels with proper server-side snapshot capture from a client application.
Example