Philipp Rajah Moura Srivastava
05/23/2020, 7:04 PMPhilipp Rajah Moura Srivastava
05/23/2020, 7:05 PMPhilipp Rajah Moura Srivastava
05/23/2020, 7:10 PMPhilipp Rajah Moura Srivastava
05/23/2020, 7:21 PMPhilipp Rajah Moura Srivastava
05/23/2020, 10:45 PMPhilipp Rajah Moura Srivastava
05/23/2020, 10:45 PMPhilipp Rajah Moura Srivastava
05/23/2020, 10:45 PMPhilipp Rajah Moura Srivastava
05/23/2020, 10:46 PMPhilipp Rajah Moura Srivastava
05/23/2020, 10:47 PMPhilipp Rajah Moura Srivastava
05/23/2020, 10:47 PMPhilipp Rajah Moura Srivastava
05/23/2020, 10:47 PMPhilipp Rajah Moura Srivastava
05/23/2020, 10:47 PMPhilipp Rajah Moura Srivastava
05/24/2020, 12:34 AMAhmed Ghanem
05/24/2020, 12:40 AMtype Meta {
id: ID! @id @unique
firstName: String
user: User @relation(name: "UserToMeta")
}
type User {
id: ID! @id @unique
username: String!
meta: Meta @relation(link: INLINE,name: "UserToMeta", onDelete: CASCADE)
}
Ahmed Ghanem
05/24/2020, 12:41 AMAhmed Ghanem
05/24/2020, 12:41 AMPhilipp Rajah Moura Srivastava
05/24/2020, 12:55 AMPhilipp Rajah Moura Srivastava
05/24/2020, 12:55 AMJames Lee
05/24/2020, 5:47 AMthis line is invalid
2. npx prisma generate also errors
model brand {
11 | created_at DateTime @default(now()) @map('createdAt')
|
error: Error validating: This line is invalid. It does not start with any known Prisma schema keyword.
anyone know if I need to do something special for @map to be accepted?
James Lee
05/24/2020, 6:53 AMJames Lee
05/24/2020, 8:07 AMJames Lee
05/24/2020, 8:07 AMonst users = await prisma.user.findMany({
where: {
missions: {
equals: missionId
}
}
})
console.log('users', users)
return users
James Lee
05/24/2020, 8:08 AMJames Lee
05/24/2020, 8:09 AMThe expected type comes from property 'missions' which is declared here on type 'userWhereInput'
Seems this where clause is only suitable for one to many relationsDmitry Belozerov
05/24/2020, 12:34 PMDmitry Belozerov
05/24/2020, 12:36 PMDmitry Belozerov
05/24/2020, 12:36 PMJames Fox
05/24/2020, 6:07 PMnpx ts-node --transpile-only src/schema
within a Docker container? The command doesn’t error for me, but the types are not generatedKate Efimova
05/24/2020, 6:24 PMlocalhost:4000
when trying to run the simplest hello-world example? 😅 Server announces the fact that its running on the following web address but than there's nothing actually therejt
05/24/2020, 9:08 PM