We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, here my code:
import { JSONFilePreset } from 'lowdb/node';
const defaultData = { posts: [] }; const db = await JSONFilePreset('db.json', defaultData);
If I run the server with this code the db.json doesn't be created. It will if I add this line.
db.write();
As I see in the instructions it should work without the last line. Any suggestion?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, here my code:
import { JSONFilePreset } from 'lowdb/node';
const defaultData = { posts: [] };
const db = await JSONFilePreset('db.json', defaultData);
If I run the server with this code the db.json doesn't be created.
It will if I add this line.
db.write();
As I see in the instructions it should work without the last line. Any suggestion?
The text was updated successfully, but these errors were encountered: