PetTable {
_id: ObjectId,
bdTable: string,
status: ObjectId(ref=Status)
}
Status {
_id : ObjectId,
statusCode : number, --> exple: (1, 2, ...7)
petId : ObjectId(ref=PetTable),
}
i want to find all objects of PetTable with bdTable = "zzzz" and status =5;
I have no idea how to go about it?