loopback-ds-paginator-mixin
v0.0.2
Published
Paginator mixin for Loopback framework models
Downloads
2
Maintainers
Readme
Loopback DS Mixin Paginator
How to install
npm install loopback-ds-paginator-mixin
or
yarn add loopback-ds-paginator-mixin
How to use
server/model-config.json
{
"_meta": {
"sources": [
"loopback/common/models",
"loopback/server/models",
"../common/models",
"./models"
],
"mixins": [
"loopback/common/mixins",
"../node_modules/loopback-ds-paginator-mixin/paginator",
"../common/mixins"
]
}
}
And in your model:
{
"mixins": {
"Paginator": {
"methods": [
{
"method": "prototype.__get__relatedModel",
"model": "RelatedModel"
},
{
"method": "get",
"model": "AppUser"
},
{
"method": "myCustomMethod",
"model": "AppUser"
}
]
}
}
}
TODO
- [ ] Better Documentation
- [ ] Improve the module structure