Mongo allow us to select the fields we're retreiving by providing a second argument (projection).
So I added the projection {_id: 0} to prevent that field to appear in responses instead of deleting it from the response.
One interesting thing is that the insert_one method from PyMongo was modifying the input we were providing, so I prevent this mutation by providing a copy of the result dictionary.
Enhancement proposal for issue #69
Mongo allow us to select the fields we're retreiving by providing a second argument (projection).
So I added the projection {_id: 0} to prevent that field to appear in responses instead of deleting it from the response.
One interesting thing is that the insert_one method from PyMongo was modifying the input we were providing, so I prevent this mutation by providing a copy of the result dictionary.
Hope it helps!