Med MongoDB 4.4 kan du bruge $function i updateMany til at generere unikke sekundære nøgler, fx UUID-baserede.