blitz-js / legacy-framework

MIT License
3 stars 2 forks source link

model Question creation in Tutorial should be 'name' #57

Closed thefrontendguy closed 3 years ago

thefrontendguy commented 3 years ago

What is the problem?

blitz generate all question text:string throws an error in app/pages/questions/index.tsx at {question.name}

The created question model has no name

model Question {
  id        Int      @id @default(autoincrement())
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  text      String
  choices   Choice[]
}

It should be this blitz generate all question name:string

thefrontendguy commented 3 years ago

my bad. the solution was below in the tutorial.