1. 3
    Create initial data with the `onConnect` async method in Keystone
    2m 38s

Create initial data with the `onConnect` async method in Keystone

Share this video with your friends

Send Tweet

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().