code: def update(self, query, doc, *args, **kwargs):
          
          if isinstance(doc, list):
              return [
                  self.update_one(query, item, *args, **kwargs)
                  for item in doc
              ]
          else:
              return self.update_one(query, doc, *args, **kwargs)
docs: BAckwards compatibility with update