PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 19th of November, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[15:07:30] <mondris> please why is this returning an empty array
[15:07:31] <mondris> const result = await db.get().collection('campaigns').find({ $or:[{clientId : `/${searchWord}/`}, {campaignName : `/${searchWord}/`}]}).toArray();
[15:08:18] <mondris> a sample of my mongodb data: https://bpaste.net/show/O6DHM
[15:08:27] <mondris> i am using nodejs mongodb driver
[17:31:20] <cesario> hi guys
[17:31:22] <cesario> i need help
[17:35:17] <cesario> i would like to achieve the results of inserting this format database of "addresses": in a nested way , here is where i define my model of the output i want https://gist.github.com/shaunstanislauslau/08c200fd852004d5af6ea477edf67194#file-customer-controller-js-L25, but i don't know what should be the correct place in here https://gist.github.com/shaunstanislauslau/08c200fd852004d5af6ea477edf67194#file-customer-controller-js-L25
[17:35:33] <cesario> i would like to achieve the results of inserting this format database of "addresses": in a nested way , here is where i define my model of the output i want https://gist.github.com/shaunstanislauslau/08c200fd852004d5af6ea477edf67194#file-customer-model-js-L15, but i don't know what should be the correct place in here https://gist.github.com/shaunstanislauslau/08c200fd852004d5af6ea477edf67194#file-customer-controller-js-L25
[18:11:15] <cesario> i would like to achieve the results of inserting this format database of "addresses": in a nested way , here is where i define my model of the output i want https://gist.github.com/shaunstanislauslau/08c200fd852004d5af6ea477edf67194#file-customer-model-js-L15, but i don't know what should be the correct place in here https://gist.github.com/shaunstanislauslau/08c200fd852004d5af6ea477edf67194#file-customer-controller-js-L25
[18:11:24] <cesario> can someone help me out on this?