RestHeart Deleting Specific JSON object from Collection

Ethan Gallant

The title explains most of it. I am trying to remove all objects from a collection where {"name": "Steve"} for example but I can't find anything in the documentation on how to achieve this without two separate http requests.

I am using NodeJS with the request library. All I have been able to find as a viable option is to find the ID and delete the object by using that.

Thanks for your help!

Andrea Di Cesare

You can use a bulk delete request:

DELETE /db/coll/*?filter={"name":"Steve"}

Bulk requests have the URI with wildcard document id and include DELETE and PATCH verbs.

More info at https://softinstigate.atlassian.net/wiki/x/JQBGAQ

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

django - deleting an object for a specific user from a group of user

From Dev

django - deleting an object for a specific user from a group of user

From Dev

Backbone make a collection from specific Json attribute

From Dev

Retrieving a specific object from JSON

From Dev

Deleting specific line from file

From Dev

Deleting specific name from the list

From Dev

Hibernate doesn't remove object from collection with children in specific case

From Dev

remove specific item from a json object

From Dev

Cannot retrieve a specific value from a json object

From Dev

Find specific JSON object in JSONArray from HttpResponse

From Dev

how to select a specific entry from a JSON object

From Dev

How to read json object from specific url?

From Dev

Get specific json object from listview click

From Dev

Deleting an object from a array in javascript

From Dev

Issue with deleting object from parse

From Java

Deleting from an object using JavaScript

From Dev

deleting an object from an array [java]

From Dev

Deleting a file object from a library

From Dev

Deleting an object from a array in javascript

From Dev

JS - deleting object from array

From Java

deleting an entry from an array in mongo collection

From Dev

Mongo Db: Deleting a record from collection

From Dev

Trouble deleting objects from JSON array if it matches a specific condition using PHP. Code is throwing errors

From Dev

Converting an array of arrays from Laravel's collection into an object with an array in json

From Dev

Write large collection object (parsed from json) to excel range

From Dev

How to read specific Json object from Json string in C#?

From Dev

Output specific value from Json object retrieved from external function

From Dev

How to update single object with RESTHeart patch?

From Dev

Deleting specific keys from memcached hash

Related Related

  1. 1

    django - deleting an object for a specific user from a group of user

  2. 2

    django - deleting an object for a specific user from a group of user

  3. 3

    Backbone make a collection from specific Json attribute

  4. 4

    Retrieving a specific object from JSON

  5. 5

    Deleting specific line from file

  6. 6

    Deleting specific name from the list

  7. 7

    Hibernate doesn't remove object from collection with children in specific case

  8. 8

    remove specific item from a json object

  9. 9

    Cannot retrieve a specific value from a json object

  10. 10

    Find specific JSON object in JSONArray from HttpResponse

  11. 11

    how to select a specific entry from a JSON object

  12. 12

    How to read json object from specific url?

  13. 13

    Get specific json object from listview click

  14. 14

    Deleting an object from a array in javascript

  15. 15

    Issue with deleting object from parse

  16. 16

    Deleting from an object using JavaScript

  17. 17

    deleting an object from an array [java]

  18. 18

    Deleting a file object from a library

  19. 19

    Deleting an object from a array in javascript

  20. 20

    JS - deleting object from array

  21. 21

    deleting an entry from an array in mongo collection

  22. 22

    Mongo Db: Deleting a record from collection

  23. 23

    Trouble deleting objects from JSON array if it matches a specific condition using PHP. Code is throwing errors

  24. 24

    Converting an array of arrays from Laravel's collection into an object with an array in json

  25. 25

    Write large collection object (parsed from json) to excel range

  26. 26

    How to read specific Json object from Json string in C#?

  27. 27

    Output specific value from Json object retrieved from external function

  28. 28

    How to update single object with RESTHeart patch?

  29. 29

    Deleting specific keys from memcached hash

HotTag

Archive