'Query sub array mongodb c#

i have two classes Students and Subjects. A student can be have many subjects and a subjects and have multiple students.

so now that i have created a databse and have added a student object to it and assigned a subject to the student.

how can i get all the subjects that a particular student is assigned to? C# am new to mongodb please help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source