The Result Object OPS not Showing in GraphQL with nodejs

Welcome to the MongoDB Community Forums @run_x_todo !

Can you provide more information to help understand your issue:

  • Version of MongoDB Node.js driver
  • Version of MongoDB server
  • Expected outcome

In the MongoDB Node.js 4.0 driver, insert() returns an InsertManyResult which has the 3 properties in your screenshot: acknowledged, insertedCount, and insertedIds.

Since the insert() method is deprecated (per the warning in your screenshot), I’d recommend using insertOne(), insertMany(), or bulkWrite() to ensure you get the expected result object returned.

Regards,
Stennie