Skip to content

Seeds not executing #1268

Answered by RomainLanz
gutyerrez asked this question in Help
Discussion options

You must be logged in to vote

Hey @gutyerrez! 👋

The call Database.table('categories').insert() returns a promise. You need to await it.

await Database.table('categories').insert([
  { name: 'Announcements' },
  { name: 'Support' },
  { name: 'Community' },
])

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gutyerrez
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1268 on July 19, 2020 11:50.