Julius de Bruijn
02/22/2022, 3:10 PMPat Dunn
02/22/2022, 3:31 PMJulius de Bruijn
02/22/2022, 3:32 PMPat Dunn
02/22/2022, 3:32 PMnikolasburk
Mike Rudge
02/23/2022, 12:47 PMmodel Product {
id String @id @default(auto()) @map("_id") @db.ObjectId
name String
photos Photo[]
}
type Photo {
height Int
width Int
url String
}
And I am getting this error message
Unknown type "Photo".
Any ideas?Mike Rudge
02/23/2022, 12:48 PMJulius de Bruijn
02/23/2022, 1:27 PMJulius de Bruijn
02/23/2022, 1:28 PMdb pull
also understands nested objects now (or the feature was turned on by default), try it out!