Here's the scenario:
var object = {key: value, key1: value, key2: value}
var array = [{object}, {object1}, {object2}, {object3}]
I'm looking to remove object 3 and 4 from the array using their key2 values with the Parse JavaScript SDK. How can I achieve this?
I've tried something like this:
object.remove("the key", [object2value2, object3value2])
I need further clarification on specifying the key and the value. Despite going through the documentation repeatedly, I'm unable to get it right. Any help would be appreciated as I'm new to this and struggling!
This is the output in my terminal after running my Parse queries when I use LIST.GET("OBJECT"); I want to delete objects based on their _id. Towards the end, you'll see 'false' where I attempt LIST.REMOVE("_id", [array of _ids]):
[ { _account: 'YzzrzBrO9OSzo6BXwAvVuL5dmMKMqkhOoEqeo',
_id: 'QllVljV252iNZej9VQgBCYkEyD4Do9fvZMAvmK',
amount: 2307.15,
category: [ 'Shops', 'Computers and Electronics' ],
category_id: '19013000',
date: '2014-06-23',
meta: { location: [Object] },
name: 'Apple Store',
pending: false,
score: { location: [Object], name: 0.2 },
type: { primary: 'place' } },
{ _account: 'V66V6EVOpOIVGQEkNpX1HkwDKX0XWLUga5B2Y',
_id: 'NQQVQJVDgDhj90JvnXkMt1jm06eqzji5JvO52Z',
amount: 3.19,
category: [ 'Food and Drink', 'Restaurants', 'Coffee Shop' ],
category_id: '13...
.
.
. (remaining content)
]
false