Hello, I am new to wasp. I add new model to Prisma model Rocket { id Int @id @default(autoincrement()) description String isDone Boolean @default(false) }
Then i run the wasp db migrate-dev I open the db studio and the Rocket is there.
Now i want to do a query query getRockets { // Specifies where the implementation for the query function is. // The path
@src/queries
@src/queries
resolves to
src/queries.js
src/queries.js
. // No need to specify an extension. fn: import { getRockets } from "@src/queries", // Tell Wasp that this query reads from the
Task
Task
entity. Wasp will // automatically update the results of this query when tasks are modified. entities: [Rocket] }
And the application fails on Rocket " .....my-project/app/main.wasp @ 346:14-19 Type error: Undefined identifier: Rocket "
I think the migrate does not generate the entity for me, how can i solve this? I tried on multiple projects.