I use Spring data MongoDB
I want to use Criteria to find the corresponding account based of attributes of the account, I'll pass in a list of Map, where each element of the list "attributes" could contain one or more attributes, each element should corresponds to one Account.
the following query could be used to find the right accounts based on gamificationId in them, but now I want a more generalized form of it, which I can use to find accounts by any attributes. how do I do that?
Query query= new Query().addCriteria([url removed, login to view]("[url removed, login to view]").in(attributes));