Hey, thank you for your response.
- MongoDB Node.js 4.1 driver
- MongoDB Atlast Cloud
I’m building graphQL API with NodeJs and MongoDB and for some weird reasons, MongoDB isn’t showing result ops in the terminal like the previous driver version below 4.0 (previous version example attached)
I want to return “RESULT” to see inserted data but I’m not being able to do it, can you please help me with how I can do that? how do in return it? I’m losing all of my brain cells lol
before I’d just add;
console.log(result); terminal would show result with an array OPS then id add;
return result.ops[0], before highlighted code and it’d return the inserted data result
//see attached screenshot for better understanding// Thanks in advance!