This example demonstrates how to use default values for fields.
This example builds on the TODO starter project.
To run this project, clone the Keystone repository locally, run pnpm install at the root of the repository then navigate to this directory and run:
pnpm devThis will start Keystone’s Admin UI at localhost:3000, where you can add items to an empty database.
When NODE_ENV is not equal to production, by default you can play with the GraphQL Playground at localhost:3000/api/graphql.
This project demonstrates how to provide default values to fields.
You can play with this example online in a web browser using the free codesandbox.io service. To launch this example, open the URL https://githubbox.com/keystonejs/keystone/tree/main/examples/default-values. You can also fork this sandbox to make your own changes.