Can somebody help me convert this aggregation(that i created using the mongodb for vscode extension)
to C# code? I don’t know how to use the conversion that the extension generates, if thats easier and someone can help me how to use it properly i’ll be grateful
Marcus is correct. Your best bet right now is to use David Golub’s Atlas Search NuGet package. That will give you a better development experience than using JSON/BSON stages as demonstrated in our driver documentation here.
Note that we are currently merging David Golub’s work into the core driver and it will be released in an upcoming version. Please follow CSHARP-3437 for details.