method IRepository.update Since 0.1.0 IRepository.update(id: Id,data: Partial<Entity>): Promise<Entity> Update an existing entity by primary key. Parameters id: Id Primary key of the entity to update data: Partial<Entity> Fields to merge into the entity Return Type Promise<Entity> The updated entity Throws Error If the entity does not exist