code: def update_one(self, update=None, validate=True, **kw):
  		
  		
  		D = self.__class__
  		collection = self.get_collection(kw.pop('source', None))
  		
  		update = Update(update or {})
  		
  		if kw:
  			update &= U(D, **kw)
  		
  		if not update:
  			raise TypeError("Must provide an update operation.")
  		
  		return collection.update_one(D.id == self, update, bypass_document_validation=not validate)
docs: Update this document in the database. Local representations will not be affected.
  		
  		A single positional parameter, `update`, may be provided as a mapping. Keyword arguments (other than those
  		identified in UPDATE_MAPPING) are interpreted as parametric updates, added to any `update` passed in.
  		
  		https://api.mongodb.com/python/current/api/pymongo/collection.html#pymongo.collection.Collection.update_one