menu

Clever Beagle

Chat with other product developers and get help with Clever Beagle's tools and resources.

Channels
Team

How to populate roles with fixtures seeder?

January 23, 2020 at 4:45pm

How to populate roles with fixtures seeder?

January 23, 2020 at 4:45pm (Edited 9 months ago)
I'm trying to pre-populate the db collection 'roles' with some default values, but it doesn't work with the following code:
```import { Roles } from 'meteor/alanning:roles';
seeder(Roles, { resetCollection: true, seedIfExistingData: true, environments: ['development', 'staging', 'production'], data: { static: [ { name: 'user' }, { name: 'admin' }, { name: 'abc-user' }, { name: 'def-user' }, { name: 'abc-admin' }, ], }, });```
No messages yet