Why did I just waste half a day troubleshooting why queries by ID weren’t working?
Despite being marked as obsolete, setting BsonDefaults.GuidRepresentation = GuidRepresentation.Standard is still required for MongoDB’s C# driver to handle GUIDs correctly. This issue has reportedly been open for nearly five years, as reflected in MongoDB’s Jira board.
MongoDB team, can we please have this addressed? It’s a frustrating pitfall that continues to waste developers’ time.