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

Support seeding the database #31

Open
kettanaito opened this issue Dec 22, 2020 · 0 comments · May be fixed by #33
Open

Support seeding the database #31

kettanaito opened this issue Dec 22, 2020 · 0 comments · May be fixed by #33
Assignees
Labels
feature New feature or request

Comments

@kettanaito
Copy link
Member

import { factory, seed } from '@mswjs/data'

const db = factory(modles)

seed(db, {
  [modelName]: seedOptions
})
@kettanaito kettanaito linked a pull request Dec 23, 2020 that will close this issue
4 tasks
@kettanaito kettanaito self-assigned this Dec 23, 2020
@kettanaito kettanaito added the feature New feature or request label Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant