Mongodb find docs without associated doc -


i have mongo database users collection , profile collection. need find users not have profile. docs associated email address.

db.user.find().foreach(function(o) {     if(db.profile.find( { email: o.email } ).length() == 0) {         print(o.email);     }; }) 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -