[web-devel] Passing a MongoDB connection through to Yesod

Xavier Shay xavier-list at rhnh.net
Fri Apr 8 06:22:04 CEST 2011


Hello,
I am having trouble wiring up Persistent.MongoDB into a Yesod app - I 
can't quite wrap my head around how it fits together.

I have this test file:
https://gist.github.com/909264

I know withMongoDBConn wiring is incorrect, but I can't find a good 
example to base it off. Also not sure what the correct `select` call is 
to use - Database.MongoDB or Database.Persist.MongoDB.

Cheers,
Xavier

PS I'm using:
https://github.com/gregwebs/persistent/tree/MongoDB5



More information about the web-devel mailing list