herteby:denormalize

v0.1.1Published 5 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

denormalize

Simple denormalization for Meteor

meteor add herteby:denormalize

API

1ParentCollection.cache({
2  type:'single',
3  collection:ChildCollection,
4  fields:['name','title'],
5  referenceField:'childId',
6  cacheField:'_cache'
7})

Test the package

meteor test-packages packages/denormalize --driver-package=practicalmeteor:mocha
open localhost:3000 in browser