i am trying to find records in my collection that have both the user's id and a photo id in my "likes" collection.
In the collection both photo_id and user_id are pointers. This is the code i've tried without success.
var user_id = localStorage.getItem("user_id");
where={"$and": [{"collName":"Photos","id": value},{"collName":"users","_id": user_id}]}
i think i'm close on the code, but something is obviously wrong.