in reply to MongoDB removing document
So - without knowing the MongoDB API, your error is passing in the TYPE, rather than the VALUE.
I'd suggest:
There are potentially other issues, but this should help step you past the current one.$doc->delete_one( {'_id'=>$doc->{_id} } ); # If that fails, try: $doc->delete_one( {'_id'=>$doc->{_id}{value} } );
good luck.
The best defense against logic is ignorance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MongoDB removing document
by GertMT (Hermit) on Oct 26, 2015 at 18:07 UTC | |
by stevieb (Canon) on Oct 26, 2015 at 18:29 UTC | |
by GertMT (Hermit) on Oct 26, 2015 at 18:48 UTC |