In this lesson, we see how we can create initial data in our database. Our keystone
instance has an async onConnect
method that will run when a successful connection has been made to the database. We hook into that and create new items with keystone.createItems()
.