Project with Child Property error - Driver 2.19

I have the following

var key = await _referenceDataCollection.Value
	.Project(c => new { c.Date, c.Data.CMAEntityId,c.Id })

I get this error

System.NotSupportedException: The projection specification { "CMAEntityId" : "$Data.CMAEntityId" } uses an aggregation expression and is not supported with find on servers prior to version 4.4.
   at MongoDB.Driver.Core.Operations.FindProjectionChecker.

Is there a correct way to do the above with the latest driver.

I found the solution. I switch to use Aggregate with was mentioned in an other post

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.