Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use with an app with existing data? #22

Open
sferoze opened this issue May 2, 2016 · 1 comment
Open

How to use with an app with existing data? #22

sferoze opened this issue May 2, 2016 · 1 comment

Comments

@sferoze
Copy link

sferoze commented May 2, 2016

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.

@thebarty
Copy link

  1. Partition your Collection according to the readme
  2. 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',
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants