If you're looking to trigger queries in your module directly from a parent application you might want to check out this thread on how to do so. It will also be updated when better support for the functionality is included within Retool
Let me know if that helps, otherwise we can investigate other ways to solve your issue!