Tutorial for todo-list. Model has 3 fields - id, title, color. But the db.json file has id, title and dateModified.
Model and data fields do not match
The data should use "color" rather than "dateModified"
Not applicable
$ node -e 'console.log(process.platform, process.arch, process.versions.node)'
linux x64 12.19.0
$ npm ls --prod --depth 0 | grep loopback
[email protected] /home/xxxxxx/loopback4/todolist
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
├── @loopback/[email protected]
Am happy to fork repo, apply fix and open pull request.
Files that need changing are docs/site/tutorials/todo-list/todo-list-tutorial-relations.md and data/db.json
none
@norricorp, if you could submit a PR to fix it, that would be great. Thanks!
There's an ongoing PR (I believe it's close to land) https://github.com/strongloop/loopback-next/pull/6598 that changes quite a lot of files in the todo-list example. You might want to check what's changed before making further changes.
Just to add this is my first bug fix on github so please be gentle.
PR #6733 has landed. Closing as resolved.
Most helpful comment
Just to add this is my first bug fix on github so please be gentle.