Find data by element
User.findByElement({name:"John"},(err, data) => { if(err) { console.log(err.message) } else { console.log(data); //example answer /* { name:"John", age:18, hair: { color:"blue", size:"short" } } */ } })
Last updated 4 months ago