Delete from MongoDB using MongoDB Librar |
[eluser]sweetD[/eluser]
Hey guys, I'm using the following mongoDB library but I can't seem to be able to figure out how to delete a document from the collection; https://github.com/alexbilbie/codeignite...ry/tree/v2 I have tried; Code: $id = new MongId($id); and; Code: $id = new MongId($id); I just keep getting a 500 error.
[eluser]sweetD[/eluser]
This is the function from the library to delete, I don't get what I am not doing correctly. Code: public function delete($collection = '') |
Welcome Guest, Not a member yet? Register Sign In |