Can't get pull operations quite right #2070
-
I can't get my pull operation quite right, can someone help me please? I am trying to remove an element in a nested array inside mongo in my laravel project. I tried many ways to do it but after checking nothing was changed in my array. I tried multiple way with no luck
i tried this as well:
My document structure can be seeing here: I also posted on SO just in case: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
i confirm the same problem pull method not work for me.
My data
Query Log Thanks |
Beta Was this translation helpful? Give feedback.
-
I was able to fix it by adding the variable name to it and also because i am removing an index, going in reverse like so:
|
Beta Was this translation helpful? Give feedback.
I was able to fix it by adding the variable name to it and also because i am removing an index, going in reverse like so: