According to your definition in UserInterface, a user can be enrolled in multiple courses. So I will do:
- Unwind courses field of User
- filter out courseEnrollments.confirmed == false
Then I think it’s the result you want.
According to your definition in UserInterface, a user can be enrolled in multiple courses. So I will do: