jeanfredrik / meteor-denormalize

Provides simple methods for common denormalization tasks
13 stars 5 forks source link

Problem for update/remove the primary field (more than 2 level relations)? #9

Open thearabbit opened 9 years ago

thearabbit commented 9 years ago

Now I try the more the 2 level relations like this

1- Address Collection (_id, name)
2- Customer Collection (_id, name, gender, addressId)
3- Order Collection (_id, orderDate, customerId)

And then I use

Customer.cacheDoc('address', Address, ['name'], {referenceField: 'addressId'});

Order.cacheDoc('customer', Customer, ['name', 'gender', '_address'], {referenceField: 'customerId'});
thearabbit commented 9 years ago

Waiting for fix this... :+1:

jeanfredrik commented 9 years ago

Sorry for the late reply. Is this still an issue for you or have you been able to resolve it?