I have a collection for users which embeds a subdocument called avatar, and I have a collection of recipes with an ‘author’ field which links to a user. I can reproduce this issue reliably by doing the following:
- Update the avatar for a user.
- Query the author of a recipe for which the above user is the author.
- Get the avatar of the queried author.
- It will still be the old avatar.
Sometimes the author does not update for over a day but I can check in the collection via MongoDB Atlas portal and see that the user has the new avatar.