warchantua
01/14/2019, 11:39 AMwarchantua
01/14/2019, 12:14 PMKit Isaev
01/14/2019, 3:01 PMtype User {
id: ID! @unique
sessions: [Session!]! @relation(name: "UserToSessions", onDelete: CASCADE)
...
}
type Session {
id: ID! @unique
user: User! @relation(name: "UserToSessions")
...
}
Why is "sessions" field on type "user" nullable in the resulting Prisma API?
type User {
sessions(...): [Session!]
}
I've checked multiple cases, this effect always persists in one-to-many relations. The one-to-many relation field is always nullable, regardless of whether it is marked as nullable or non-nullable in the datamodel. Thanks in advance!pettanko
01/14/2019, 3:53 PMfaure
01/14/2019, 4:00 PMfaure
01/14/2019, 4:00 PMERROR: for spark-erp_prisma_1 Cannot start service prisma: failed to create endpoint spark-erp_prisma_1 on network spark-erp_default: failed to add the host (veth645932f) <=> sandbox (veth099d5f0) pair interfaces: operaCreating spark-erp_mysql_1 ... error
ERROR: for spark-erp_mysql_1 Cannot start service mysql: failed to create endpoint spark-erp_mysql_1 on network spark-erp_default: failed to add the host (veth926ec62) <=> sandbox (veth6683c08) pair interfaces: operation not supported
ERROR: for prisma Cannot start service prisma: failed to create endpoint spark-erp_prisma_1 on network spark-erp_default: failed to add the host (veth645932f) <=> sandbox (veth099d5f0) pair interfaces: operation not supported
ERROR: for mysql Cannot start service mysql: failed to create endpoint spark-erp_mysql_1 on network spark-erp_default: failed to add the host (veth926ec62) <=> sandbox (veth6683c08) pair interfaces: operation not supported
faure
01/14/2019, 4:01 PM➜ spark-erp git:(master) ✗ docker-compose -v
docker-compose version 1.23.2, build unknown
➜ spark-erp git:(master) ✗ docker -v
Docker version 18.09.1-ce, build 4c52b901c6
faure
01/14/2019, 4:09 PMandykay
01/14/2019, 5:39 PMreturn prisma.users({
where: {
OR: [{ name_contains: name }, { email_contains: email }],
},
orderBy: "name_ASC",
first,
});
Max Ast
01/14/2019, 6:20 PMRamin B
01/14/2019, 7:48 PMRamin B
01/14/2019, 7:53 PMme: {
id: "cjndjprkqye........"
isBeta: false
memberships: []
__typename: "User"
}
Tim Plummer
01/14/2019, 9:52 PMprisma deploy
errors out because it doesn't see the scalar definition in the datamodelfaure
01/15/2019, 12:14 AMBuda
01/15/2019, 12:18 AMjustin_rich
01/15/2019, 12:56 AMjustin_rich
01/15/2019, 12:56 AMjustin_rich
01/15/2019, 12:56 AMjustin_rich
01/15/2019, 12:56 AMjustin_rich
01/15/2019, 12:57 AMjustin_rich
01/15/2019, 12:58 AMKimmo Sääskilahti
01/15/2019, 8:57 AMGet started
at prisma.io are a bit broken, "Next Step" at the bottom takes to FAQ for some reason https://www.prisma.io/docs/get-started/01-setting-up-prisma-new-database-TYPESCRIPT-t002/calvin
01/15/2019, 10:47 AMwoss
01/15/2019, 11:26 AMLobo
01/15/2019, 11:26 AMSlackbot
01/15/2019, 11:42 AMrem
01/15/2019, 2:00 PMrem
01/15/2019, 2:00 PMandykay
01/15/2019, 3:16 PMNaka
01/15/2019, 4:40 PM