We have an internal reporting feature we are migrating to Retool, however, we can't really figure out how to populate MongoDB queries or run dynamic queries where inputs are values being looped over.
Our current workflow: https://gist.github.com/sambhav2612/138793fff55538c95105a6b5f388f6a0
The fact that it is completely async might make it all-the-more difficult to migrate in our assumption but we'd like a try anyway. We just want to replicate the TypeScript code for now to offload the spikes our reporting tool causes to our app directly to the MongoDB server.