WaspW
Waspβ€’16mo ago
varo

How to correctly use queries

as title says, I've been trying to implement some queries to know how everything works, but having some doubts:
  • I want to fetch some files located on the server side, what's the recommended path to locate these files? it works, but process.cwd() returns me .wasp/out path and idk if I should keep it or change to @src/server/files or .wasp/out/server/src
  • Are operations on openSAAS used like queries.ts? there's no difference right?
  • it works for me without using entities, if I use them, it gives me unexpected token (I'm using them wrong ik), should I figure out and use them? Maybe if I'm handling with files and not objects in some db it's different
Was this page helpful?