Read object IDs in findAndModify().