parameters: (self, bundle, request=None, **kwargs)
return_statement: return bundle
docstring: Updates mongodb document.
docstring_summary: Updates mongodb document.
docstring_tokens: Updates mongodb document .
function: def obj_update(self, bundle, request=None, **kwargs):
          """
          Updates mongodb document.
          """
          self.get_collection().update(
              {"_id": ObjectId(kwargs.get("pk"))},
              {"$set": bundle.data})
          return bundle
function_tokens: def obj_update ( self , bundle , request = None , * * kwargs ) : self . get_collection ( ) . update ( { "_id" : ObjectId ( kwargs . get ( "pk" ) ) } , { "$set" : bundle . data } ) return bundle