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

I want to add a pull request into the EVE #1377

Closed
Hedgehogues opened this issue Apr 5, 2020 · 2 comments
Closed

I want to add a pull request into the EVE #1377

Hedgehogues opened this issue Apr 5, 2020 · 2 comments
Labels

Comments

@Hedgehogues
Copy link

Hedgehogues commented Apr 5, 2020

Hello, I see this question.
Do I have the ability to somehow update a document other than PATCH? I have a large document. But I need update the only field one. This is a very long for me (200 ms). I have document next kind:

{
   "x" : [
     {"field": 1},
     {"field": 2},
     {"field": 3},
     {"field": 4}
   ]
}

I need update, for example, the latest element of array. Or I need add new element into array. Do I have way do it without get all document and patch it entirely?

If answer is no. Could I patch the source to add new feature? Could you accept my pull request? I see some people have the same problem. I see some advice to solve this problem with hooks, but this is a very strange way.

Is there any way update the document without patch, but with save the same _id and new _etag?

@Hedgehogues Hedgehogues changed the title custom PATCH existed element I want add pull request into the EVE Apr 10, 2020
@Hedgehogues Hedgehogues changed the title I want add pull request into the EVE I want to add pull request into the EVE Apr 10, 2020
@Hedgehogues Hedgehogues changed the title I want to add pull request into the EVE I want to add a pull request into the EVE Apr 10, 2020
@nicolaiarocci
Copy link
Member

Hi, on top of my memory, I think you can replace the whole field x with a PATCH, not the single value of its array. Feel free to submit a PR I will be happy to review it.

@stale
Copy link

stale bot commented Oct 11, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Oct 11, 2020
@stale stale bot closed this as completed Oct 24, 2020
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