Generic run-time generation of input filter types for existing graphql types, and parsing of said input types into MongoDB queries