Hello everybody, i want to delete an array element in a runtime collection, im using delete(arrayelement[i]) but this is not working for me as it sets the value to "null" and this is not what i need, i need the array element to dissapear from the array, any help would be appreciated, thanks.
Alberto Martinez
Hello everybody, i want to delete an array element in a runtime collection, im using delete(arrayelement[i]) but this is not working for me as it sets the value to "null" and this is not what i need, i need the array element to dissapear from the array, any help would be appreciated, thanks.
Try to take a look here: https://docs.mongodb.com/manual/reference/operator/update/pull/
Also some example how to use it:
you can combine it with conditions, more fields of your choice.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstDaniel Matejka
Try to take a look here: https://docs.mongodb.com/manual/reference/operator/update/pull/
Also some example how to use it:
you can combine it with conditions, more fields of your choice.
1 person likes this
Alberto Martinez
Works perfect, lot of thanks Daniel
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics