Closed andregoldstein closed 4 years ago
It's likely you need to run yarn create-tables
. For the Knex Adapter Keystone will not automatically initialise an SQL database, but there is a command to do this.
You can see the docs on initialising tables here: https://www.keystonejs.com/quick-start/#installing-keystone
Clarifying @MadeByMike's comment -- the yarn create-tables
command creates tables in your DB for the lists currently defined in your Keystone schema. Based on your reproduction steps, it looks like you may have run yarn create-tables
(step 4) then added the list to your schema (step 5). Just reverse these two steps!
Hi @molomby thanks so much for your reply, I will go back to my project and try it this way around, it's possible I hadn't got it the right way around!
When creating first list on fresh install, receive GraphQL error in admin dashboard
When trying to add my first list on a fresh install using Postgres and the users/auth starter I receive a GraphQL error when logging into admin
To Reproduce
yarn create keystone-app app-name
yarn create-tables
Clinic
list:Expected behaviour
Expected to be able to access this new model in the admin
System information