FetchFrame
FetchFrame is an easy to use, resource based system for using Facebook's DataLoader library which makes it easier to handle per request permissions and caching in a more terse way.
npm install --save fetchframe
Example
// Create a Schemalet mySchema = resources: User: dimensions: id: user_objectid { if contextip === "0.0.0.0" return else return } let firstFrame = mySchema authenticationToken: "person1" ip: "192.168.1.1" firstFrameUser
The above is just a quick example of how the system works - read the Getting Started Guide to learn more!
Documentation
Tests
Test are run on Codeship's Docker platform - all PRs must pass linting, unit tests and Node Security Project validations.
Contributing
Any contributions are welcome as long as they are within scope and maintain compatibility. You can open an issue to discuss a change if you are unsure - or just send the Pull Request and have the conversation.
Please note all Pull Requests must pass the full test battery
Credit
Depends on and inspired by the excellent DataLoader library from Facebook.
Sponsored by Doorpass - The simplest and safest way to manage your team's access to cloud services