dataloader-mongoose
v0.0.2
Published
Default mongoose loader for Facebook dataloader https://github.com/facebook/dataloader
Downloads
4
Readme
DataLoader mongoose
Synopsis
Default mongoose loader for Facebook dataloader https://github.com/facebook/dataloader
Code Example
const { dataLoaderMongoose } = require('dataloader-mongoose');
const shipDefaultLoader = new DataLoader(ids => dataLoaderMongoose(mongoose.model('Ship'), ids));
Installation
npm install mongoose dataloader dataloader-mongoose
Tests
TODO: add some tests
License
Graphql relay mongoose is released under the MIT License.