meteor-partitioner
meteor-partitioner copied to clipboard
How to use with an app with existing data?
I have an app currently in use with user data. I want to add this package, but how can I do so and connect the existing data to certain groups.
- Partition your Collection according to the readme
- Update your docs and give them the field
_groupId: 'tenantid'
So a todo-list item
{
_id: 'xxaxadasdasd',
entry: 'entryname',
}
becomes
{
_id: 'xxaxadasdasd',
_groupId: 'tenantid'
entry: 'entryname',
}