|go ahead... be a heretic|
|( #3333=superdoc: print w/replies, xml )||Need Help??|
I have never used MongoDB and you have not provided us with a minimum example problem replication code to play around so I will just provide you some possible solutions until further update.
Possible solution 1 from (MongoDB::Tutorial):
Possible solution 2 from (MongoDB::Examples):
If none of the examples work in your case, please provide us with minimal working example code that replicates your problem and me and all other monks will be more than happy to help you as much as possible.
Update: regarding the MongoDB::WriteConcern it is defined like this:
Update2: reading through the MongoDB::Collection and based on your sample of code you are interested in capturing the error on insert_one(). If so it can be done like this:
Update3: reading through the MongoDB::MongoClient and based on the documentation you could use write_concern, from the documentation:
Also from the same module MongoDB::MongoClient you could use $coll->insert() sample of code:
Hope this helps.
Seeking for Perl wisdom...on the process of learning...not there...yet!
In reply to Re: MongoDB and WriteConcern