jeanfredrik / meteor-denormalize

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

Use with one to many relationships #12

Open aaronmyhre opened 8 years ago

aaronmyhre commented 8 years ago

Does this package work with one-to-many relationships? For example, if I had the following collections, Movie and Genre, Is it possible to denormalize both "Science Fiction" and "Romance" onto the movie collection?

Movie = {name: "starwars", genre_id: [1,2]} Genre = {id: 1, name: "Science Fiction"}, {id: 2, name: "Romance"}

jeanfredrik commented 8 years ago

What you're describing is potentially a many-to-many relationship. This package does not have a functionality for your scenario at the moment.

alvestjo commented 7 years ago

Hi,

I am also in the need for this feature. Are there any plans to implement this any time soon. Maybe I can help? BTW: Great package! //Jonas

jeanfredrik commented 7 years ago

Hi Jonas. I haven’t been working actively on this project for a while and I don’t use it in any of my current Meteor projects. This package could surely benefit from your help if you’re feeling up to it!

There’s also a package called maximum:computed-fields that might be of interest.