Skip to content
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

[BUG] ArangoRepository save method interally uses updateDocument instead of replaceDocument #455

Closed
m4ttek opened this issue Nov 13, 2023 · 2 comments
Assignees
Labels

Comments

@m4ttek
Copy link

m4ttek commented Nov 13, 2023

Which JNoSQL project the issue refers to?

JNoSQL Databases

Bug description

Once a document is saved in collection, there is no possiblity to nullify any given field, as it uses updateDocument method internally, instead of replaceDocument.

Unfortunately, I have to delete such record first, to update it, which is not a satisfactory solution ;)

And, I believe there should be dirty checking of values in any entity, but replaceDocument will also work.

JNoSQL Version

1.0.2

Steps To Reproduce

  1. Save any given document with example values
  2. Try to update it with some nullified fields.

Expected Results

Save method should use replaceDocumento, not updateDocument from arango driver

Code example, screenshot, or link to a repository

No response

@m4ttek m4ttek added the bug label Nov 13, 2023
@otaviojava
Copy link
Member

@m4ttek hey, thank you for the report. We are working on it.

@otaviojava
Copy link
Member

We've released a new version with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants