[CSHARP-4734] Throw an exception when an aggregation style projection is used with Find on servers prior to 4.4 Created: 27/Jul/23  Updated: 03/Aug/23  Resolved: 03/Aug/23

Status: Closed
Project: C# Driver
Component/s: API, Command Operations, CRUD, Read Operations
Affects Version/s: None
Fix Version/s: 2.21.0

Type: Improvement Priority: Unknown
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

Currently when an aggregation style projection is executed with Find against a server prior to 4.4 the server silently returns the wrong results. Since silently returning the wrong results is bad, we can detect that an attempt is being made to use an aggregation style projection with a server that doesn't support that and throw an exception instead.



 Comments   
Comment by Githook User [ 03/Aug/23 ]

Author:

{'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}

Message: CSHARP-4734: Throw an exception when an aggregation style projection is used with Find on servers prior to 4.4.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/10b0a2538ed866af78ba4cc531f9da0d26da9b43

Generated at Wed Feb 07 21:49:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.