My custom type "Observations" doesn't seem to be generating correctly as I am getting this error message
Property 'observations' is missing in type 'import("/Users/thomasandrew/Documents/webApps/social-innovate/boilerplate/packages/api/node_modules/.prisma/client/index").ActionPlan' but required in type 'import("/Users/thomasandrew/Documents/webApps/social-innovate/boilerplate/packages/api/src/modules/actionPlan/actionPlan.model").ActionPlan'.ts(2741) actionPlan.model.ts(25, 5): 'observations' is declared here.
This is my Prisma schema file (removed some extraneous fields)
model Observation {
id String @id @default(dbgenerated("gen_random_uuid()"))
actionPlan ActionPlan @relation(fields: [actionPlanId], references: [id])
actionPlanId String
meetingDate DateTime?
place String?
}
model ActionPlan {
id String @id @default(dbgenerated("gen_random_uuid()")) @unique
testName String
observations Observation[]
}
type-graphql model
@ObjectType()
export class ActionPlan extends BaseModel implements Prisma.ActionPlan {
@Field()
testName: string
@Field()
department: string
@Field()
code: string
@Field()
outcome: string
@Field()
hypothesis: string
@Field(type => [Observation])
observations: Observation[]
}
However even when I run prisma generate successfully, it doesn't add the 'observations' to the Action Plan. Am I missing something? Any help would be great. I also attached screenshot of generated types at node_modules/.prisma/client/index.d.ts

