I remember practicing a question about this, and I think $push can add to a field even if it doesn't exist yet, but $addToSet needs the field to be there first.
I think $addToSet only adds items if they aren't already in the array, while $push just adds them regardless. That sounds right, but I'm not completely sure.
This looks like a pretty standard costing question. As long as I apply the variable cost percentages correctly, I should be able to arrive at the right answer.
upvoted 0 times
...
Log in to Pass4Success
Sign in:
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up or
login
Mattie
4 months agoRebecka
4 months agoNorah
4 months agoEzekiel
4 months agoNaomi
5 months agoFranklyn
5 months agoDelmy
5 months agoMerilyn
5 months agoWhitney
5 months agoKeneth
5 months agoAdell
5 months ago