@js-entity-repos/core
v9.1.1
Published
Provides common interfaces and tests for concrete implementations of js-entity-repos.
Downloads
57
Readme
core
Provides common interfaces and tests for concrete implementations of js-entity-repos. The js-entity-repos use the repository design pattern and attempt to reduce the code required in JavaScript projects with entities.
Usage
- Install it with
npm i @js-entity-repos/core
. - Understand it by reading the documentation.
- See it in action in the todos example application.
FeathersJS
The project has some similarities with parts of the FeathersJS framework, but unfortunately I've found the following issues with FeathersJS.
- Their pagination uses skip and limit instead of cursors which causes issues as discussed by Rakhitha Nimesh.
- Their service interface is missing some functions provided in the Facade here.
- Their errors take messages instead of parameters making it harder to support localisation.
Thanks
Thanks to James, Mariusz, and Pete at HT2 Labs for their feedback.