We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import Database.MongoDB((=:)) import Database.MongoDB (Document, Action, findOne) import qualified Database.MongoDB as MongoDB import Data.UString (u) rawOne :: Trans.MonadIO m => MongoDB.Collection -> MongoDB.Selector -> Action m (Maybe Document) rawOne collection q = findOne (MongoDB.select q collection) theCollection :: Trans.MonadIO m theCollection = rawOne $ u"food" getTheR theId = do Just doc <- runDB $ theCollection ["_id" =: theId]