MongoDB filter from graphql

I’ve been setting up my schema just as described in this talk from the GraphQL summit https://www.youtube.com/watch?v=dDxUu-K2qdE in order to apply filters and sorting parameters to my queries. How would you go about translating the filter arguments to work with MongoDB in your resolvers?