Dec 24, 2020 09:39 AM|PatriceSc|LINK
Assuming you are learing about queying MongoDB, it seems you could use Linq :
Expressions (mongodb.github.io) my understanding is that you could also (which happens behing the scene whn using Linq) to create a document with property names, each value being an object that describes the filtering you want.
For this particular purpose you could use the ASP.NET Identity (the built in API to manage users) with something such as
GitHub - g0t4/aspnet-identity-mongo: A mongodb provider for the new ASP.NET Identity framework.