-
Hi guys, I am crossposting my issue which I have posted it before on the Discord server. I have a simple Node.js express app and deta base of around 100 records and I use the code from the doc to try to get all records from the db: I can't get app.get("/api/v1/records", async (req, res) => {
const records = await recordDB.fetch();
console.log(records);
... The Things I have tried:
On the other hand,
So I think the db is configurated correctly but Anything I did wrong? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nvm, my bad, I solved it. It is because I haven't installed As per doc:
I feel like it is kinda confusing since something worked as expected but some other random functions did not. So it was hard to troubleshoot the problem. Is this design intentional? |
Beta Was this translation helpful? Give feedback.
Nvm, my bad, I solved it. It is because I haven't installed
deta
package in the project but somehow the deployed micro partially worked so I guess maybe there is an outdated version ofdeta
somewhere in the cloud?As per doc:
I feel like it is kinda confusing since something worked as expected but some other random functions did not. So it was hard to troubleshoot the problem. Is this design intentional?