Composite Types aren't offered as being auto-completable in other blocks
Druue opened this issue · 0 comments
Druue commented
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mongodb"
url = env("DATABASE_URL")
}
type NestedType {
A string
}
model NestedModel {
id String @id @map("_id") @db.ObjectId
error_question Unsupported("RegularExpression")
sample_model sample_model[]
}
model sample_model {
id String @id @default(auto()) @map("_id") @db.ObjectId
some_field <|>
NestedModel NestedModel? @relation(fields: [nestedModelId], references: [id])
nestedModelId String? @db.ObjectId
}
Where <|>
represents cursor, available completions do not include NestedType