Skip to content

DOC-614 | Versioning support for document operations #453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 22, 2024

Conversation

nerpaula
Copy link
Contributor

@nerpaula nerpaula commented Feb 5, 2024

Description

Relates to arangodb/arangodb#20382

Copy link
Contributor

Deploy Preview Available Via
https://deploy-preview-453--docs-hugo.netlify.app

@cla-bot cla-bot bot added the cla-signed label Feb 5, 2024
@nerpaula nerpaula added this to the 3.12 milestone Feb 5, 2024
@nerpaula nerpaula requested a review from Simran-B February 5, 2024 05:56
Copy link
Contributor

@Simran-B Simran-B left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feature is also available in the Document HTTP API as a query parameter

Tested with a collection v and a document { "_key": "a", "ver": 4 }

curl -d '{"ver":2}' -XPATCH 'http://localhost:8529/_api/document/v/a?returnNew=true&versionAttribute=ver'

The ver attribute remains the same, if you change or remove versionAttribute, it gets updated from 4 to 2.

@nerpaula nerpaula merged commit 1920efe into main Feb 22, 2024
@nerpaula nerpaula deleted the aql-update-replace-versioning branch February 22, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants