These are chat archives for Automattic/mongoose
User.findOne().or([criteria])not working for me any alternative for it or am i doing wrong way?
i know they are, but I'm not sure they are under the child's scope only.
Practical example: parent.id(1).child.id(2) and parent.id(2).child.id(2) -> child.id(2) doesn't have an unique _id but it is a unique doc anyway as it was stored under a different parent's id and you could retrieve it anyway if you specify the parent's id. Understand what I mean? I just need to make sure this won't ever happen; otherwise, I will have to select the parent's id as well on every query