Pymongo read output after insert new value in collection
-
Goodmorning, I'm new in this forum and I start working with pymongo.
I’m using pymongo to send new data in a database->collection of my mongodb with ssh tunneling. It work succesfully but I need to read the output content after running:
result=dbColl.insert(dataToSend)
result is of type: <class ‘bson.objectid.ObjectId’>
With the software postman I correctly obtain a conversion of parameters sent in "dataToSent" but I don’t know how to read it with pymongo after insert function
thank you very much
Best regards
-
@D-S
are you usingpymongo
on micropython?