Import module with pre-set queries

When creating a module I want to be able to create queries and import them into my together with the front-end components. At the moment I am importing both the module and resource from query library.