Package Exports
- loopback-content-range
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loopback-content-range) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
loopback-content-range
Support react-admin for Loopback 3 by adding Content-Range header.
Installation
npm install --save loopback-content-rangeUsage
Modify your server/component-config.json to include this module:
{
"loopback-content-range": {
"pattern": [
"*.find"
],
"relatedModels": true
},
}Options
pattern: Array of String
Method patterns that Content-Range header will be added.
Accepted patterns: See https://loopback.io/doc/en/lb3/Remote-hooks.html#wildcards.
Default value: [ "*.find" ], which auto added to find method of all models.
relatedModels: Boolean
Credits
Based on loopback3-xTotalCount and loopback-component-react-admin