Open Martinsos opened 11 months ago
Another user asking about this: https://discord.com/channels/686873244791210014/1218225782183170158/1218225782183170158 .
Another ask on discord: https://discord.com/channels/686873244791210014/1293199953719459881/1293199953719459881 .
Is it possible to read a local file in a query implementation defined in operations.ts ?
Right now it is a bit tricky because you can't directly import .json with node (at least 18), and people get surprised with it because error message is confusing (claims there is no file).
I explained how to go about it here: https://discord.com/channels/686873244791210014/1171780998699171841/1171780998699171841 .
We could add a small section in docs that covers this, since we had multiple people ask about this so far, even if it is not really Wasp-specific issue.