parameters: (self, user_id)
docstring: Marks as read the notifications of user.
docstring_summary: Marks as read the notifications of user.
docstring_tokens: Marks as read the notifications of user .
function: def mark_as_read(self, user_id):
          """
          Marks as read the notifications of user.
          """
          self.collection.update(
              {"recipient": user_id, "is_read": False},
              {"$set": {"is_read": True}}, multi=True)
function_tokens: def mark_as_read ( self , user_id ) : self . collection . update ( { "recipient" : user_id , "is_read" : False } , { "$set" : { "is_read" : True } } , multi = True )