TonyGen / mongoDB-haskell

MongoDB driver for Haskell
http://hackage.haskell.org/package/mongoDB
Apache License 2.0
57 stars 14 forks source link

Re: Returning associated "_id" value from update functions. #22

Open Palmik opened 12 years ago

Palmik commented 12 years ago

Hi Tony, sorry it took me so long to respond. I have added the "returns an id" functionality to save. I was not sure how to name the new function. In the end I named it save and renamed the old save to save. This fits the pattern of other functions like insert, but it breaks backward compatibility, so feel free to rename the functions as you find appropriate.

Petr.