From 58127532178bc36133d901d8032a6f20cb76bde3 Mon Sep 17 00:00:00 2001 From: Victor Denisov Date: Mon, 22 Aug 2016 21:24:06 -0700 Subject: [PATCH] Add more documentation --- Database/MongoDB/Query.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Database/MongoDB/Query.hs b/Database/MongoDB/Query.hs index c8a787e..e8c316d 100644 --- a/Database/MongoDB/Query.hs +++ b/Database/MongoDB/Query.hs @@ -22,7 +22,7 @@ module Database.MongoDB.Query ( insert, insert_, insertMany, insertMany_, insertAll, insertAll_, -- ** Update save, replace, repsert, upsert, Modifier, modify, updateMany, updateAll, - UpdateResult, UpdateOption(..), + UpdateResult(..), UpdateOption(..), Upserted(..), -- ** Delete delete, deleteOne, deleteMany, deleteAll, DeleteResult, DeleteOption(..), -- * Read @@ -151,7 +151,8 @@ type GetLastError = Document data UpdateResult = UpdateResult { nMatched :: Int - , nModified :: Maybe Int -- Mongodb server before 2.6 doesn't allow to calculate this value. It's Nothing if we fail to do so + , nModified :: Maybe Int + -- ^ Mongodb server before 2.6 doesn't allow to calculate this value. This field is nothing if we can't calculate the number of modified documents. , upserted :: [Upserted] , writeErrors :: [WriteError] } deriving Show