Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

MongoDB makes deleting records easier. Forward has a trash can:

    {get $order from "/orders/123"}

    {put $order in "/trash"}
Now the order is no longer in the "orders" collection in MongoDB, instead it's in the "trash" collection. You can still get it by ID though:

    {get $order from "/orders/123"}
    {$order|dump} -- Still here! But not really here.
We can just as easy pull the document out of the trash and put it back where it was.

It's the reason you see we can delete documents without even a warning in the demo (http://demo.getfwd.com).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: