qrry
Modular hierarchical data querying
wtf?
This module allows you to define a tree-shaped structure that holds all accessible data, and query the data at different levels. By using on-demand resolvers (just functions, really), only the requested data will be computed.
Example
const qrry = ;const byKey = qrry;const Post = ; const $ = ; ; // {me: { // posts: {// coolPost: {userId: 1, slug: "coolPost", id: 100, content: "..."}// }// }
Install
$ npm install qrry
License
MIT © sgtlambda