Best practices for splitting queries and operations

Hello, as I'm getting familiar with Wasp and OpenSaaS, I've hit a doubt I'd like to solve before I add too many functionalities to my project.

Following the vertical feature structure in OpenSaaS, is it advised that I create operations.ts and query.ts under each functionality that requires them, or should I keep them in the top-level operations.ts and queries.ts files?

To make it visual

src/
  |
  |-> feature1/
        | [...]
        |-> queries.ts <--- This?
  |
  | ...
  |-> queries.ts <--- or everything here?


I would assume that a good idea is to keep the feature-specific queries inside the feature folder and have all reusable ones available in the top-level file. Am I missing something important?
Was this page helpful?