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

Options Support, i.e. arrayFilter #392

Open
kevinsandow opened this issue Dec 1, 2020 · 2 comments
Open

Options Support, i.e. arrayFilter #392

kevinsandow opened this issue Dec 1, 2020 · 2 comments

Comments

@kevinsandow
Copy link

Options is the third parameter for the updateMany method, but is currently hard coded to DO_NOT_UPSERT.

Expected Behavior

Support of the following would be nice:

updateMany(
  { 'foo': { $elemMatch: { 'bar': 0 } } },
  { $set: { 'foo.$[x].bar': 1 } },
  { arrayFilters: [{ 'x.bar': 0 }] }
)

Current Behavior

At the moment I have to request the whole document, update the document manually with code and patch it afterwards.

Possible Implementation

Support another parameter options next to filter and pass additional options to mongodb.

@ujibang ujibang added this to the 6.2 milestone Oct 25, 2021
@ujibang ujibang modified the milestones: 6.2, 7.0 Jan 3, 2022
@ujibang
Copy link
Contributor

ujibang commented Jan 3, 2022

Added to RESTHeart v7 roadmap #425

@mkjsix
Copy link
Member

mkjsix commented Jan 2, 2023

@ujibang is this in the 7.x release yet?

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

No branches or pull requests

3 participants