Weird behaviour when changing ObjectID on document

I changed the order of two ObjectID(“”) in an array by hand (so basically switched them) .

I’m using mongoose and the “populate()” method. But when after I changed the order of Ids “populate” does no longer populate the desired document.

Is there a reference problem when manually changing ObjectIDs?

Thanks!

1 Like