Check out example codes for "project mongodb c#". It will help you in understanding the concepts better.

Code Example 1

int count = 1;
await collection.Find(FilterDefinition<Student>.Empty)
    .Project(x => new {x.FirstName, x.LastName})
    .ForEachAsync(
        student =>
        {
            Console.WriteLine($"{count}. \t FirstName: {student.FirstName} - LastName {student.LastName}");
            count++;
        });

Console.WriteLine();

Learn ReactJs, React Native from akashmittal.com