Step 2
Open model/NoteDao.js
file and reduce it to a skeleton data access object for notes:
const Note = require("./Note");
class NoteDao {
constructor() {
}
create(content, author) {
return null;
}
readAll(author = "") {
return null;
}
read(id) {
return null;
}
update(id, content, author) {
return null;
}
delete(id) {
return null;
}
}
module.exports = NoteDao;
We will implement the above CURD operations one by one.