Seeds not executing #1268
-
I tried to run my seeds executing Package version5.0.0-preview-rc Node.js and npm versionNode.js: 12.16.1, NPM: 6.14.6 Sample Code (to reproduce the issue)
|
Beta Was this translation helpful? Give feedback.
Answered by
RomainLanz
Jul 19, 2020
Replies: 2 comments
-
Hey @gutyerrez! 👋 The call await Database.table('categories').insert([
{ name: 'Announcements' },
{ name: 'Support' },
{ name: 'Community' },
]) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gutyerrez
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @gutyerrez! 👋
The call
Database.table('categories').insert()
returns a promise. You need to await it.