Can I use any in mongoDB $addToSet?
{ $addToSet: { critters: { id: id_critter, amount: $ }
I would like to check if only id_critter is the same, amount can be different.
Can I use any in mongoDB $addToSet?
{ $addToSet: { critters: { id: id_critter, amount: $ }
I would like to check if only id_critter is the same, amount can be different.