PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 22nd of January, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[11:46:13] <beStKodErEveR> hi
[11:46:23] <Derick> hi?
[11:48:13] <beStKodErEveR> it seems you can fetch mongodb data from both react or express... why would i use express then? i mean.. its good if you have many routes, but you could just run a GET in the react app.js right
[11:49:31] <beStKodErEveR> like in this example: https://stackoverflow.com/questions/44644567/how-do-you-render-data-stored-on-mlab-onto-a-react-component
[12:07:48] <beStKodErEveR> where to fetch data..from react or express routes?
[12:08:14] <Derick> beStKodErEveR: I think that's best asked in the react or express channels? I've no idea about either of these tools
[12:08:31] <beStKodErEveR> ok..
[14:56:27] <armandokeller> Hello, I'm having some troubles to specify the return fields using libmongoc. Someone could help me?
[15:00:00] <Derick> can you show some code?
[15:00:59] <armandokeller> I'm trying to perform this query on libmongoc: db.getCollection("dados").find({criador:ObjectId("5bee0674c33b539eab0fbc03")},{"_id":1})
[15:01:20] <Derick> right, and what's the C code that goes with that?
[15:01:28] <Derick> (please use a pastebin)
[15:04:00] <armandokeller> https://pastebin.com/kNH3iCe3
[15:08:12] <Derick> gimme a few
[15:10:48] <Derick> the options are defined at http://mongoc.org/libmongoc/current/mongoc_collection_find_with_opts.html, and an example (not tested) could be https://pastebin.com/uTbtzN5D
[15:13:16] <armandokeller> It works
[15:14:05] <armandokeller> thank you very much
[15:14:52] <Derick> you're most welcome
[15:15:03] <Derick> we use the word "projection" for selecting fields. It's a little odd.
[15:16:43] <Trezker> what would you want to call it?
[15:17:39] <Derick> "fields"? :-)
[15:23:03] <armandokeller> fields is more intuitive
[16:57:36] <beStKodErEveR> guyz.. can you save a json with its children -> mongodb
[16:57:48] <beStKodErEveR> im using mongoose ..