TroyZ
03/24/2018, 2:04 AMstton
03/24/2018, 3:38 AMstton
03/24/2018, 3:39 AMRobby Emmert
03/24/2018, 4:49 AMRobby Emmert
03/24/2018, 4:50 AMtype User @model {
id: ID! @unique
fullName: String!
email: String! @unique
password: String!
createdAt: DateTime!
updatedAt: DateTime!
contacts: [Contact!]! @relation(name:"AssignedTo")
createdContacts: [Contact!]! @relation(name:"CreatedBy")
}
# Contacts
type Contact @model {
id: ID! @unique
fullName: String!
phone: String @unique
email: String @unique
assignedTo: User @relation(name:"AssignedTo")
createdBy: User! @relation(name:"CreatedBy")
}
I want to rename AssignedTo to UserAssignedTo and CreatedBy to UserCreatedByJonathan
03/24/2018, 5:03 AMuser
03/24/2018, 5:04 AMhttps://prisma.slack.com/files/U9HP6LZ18/F9UTTGFLZ/screen_shot_2018-03-24_at_12.00.09_am.png▾
Robby Emmert
03/24/2018, 5:08 AMERROR: There is a relation ambiguity during the migration. Please first name the old relation on your schema. The ambiguity is on a relation between Contact and User.
Robby Emmert
03/24/2018, 5:08 AMJonathan
03/24/2018, 5:18 AMJonathan
03/24/2018, 5:20 AMMoritz
03/24/2018, 10:13 AMplayra
03/24/2018, 10:45 AMNO SCHEMA AVAILABLE
?
https://eu1.prisma.sh/public-crystalhawk-293playra
03/24/2018, 10:45 AMDaniel K.
03/24/2018, 10:46 AMPeter Albert
03/24/2018, 11:04 AMtype Author @model {
id: ID! @isUnique
posts: [Post!]! @relation(name: "AuthorOfPost")
}
type Post @model {
id: ID! @isUnique
author: Author @relation(name: "AuthorOfPost")
}
How can I query all Posts that do not have an author? Unfortunately, I cannot find something in the authorFilter
like id_is_null
.
Thankspiscis
03/24/2018, 11:27 AMdavidyoung
03/24/2018, 12:38 PMdavidyoung
03/24/2018, 12:39 PMdavidyoung
03/24/2018, 12:39 PMdavidyoung
03/24/2018, 12:39 PMjamiehalvorson
03/24/2018, 1:17 PMsenorcodecat
03/24/2018, 2:10 PMlogan
03/24/2018, 3:10 PMsebstr
03/24/2018, 5:04 PMMichael Jones
03/24/2018, 7:21 PMapplication layer
, can that be hosted through the Prisma Cloud?dfcarpenter
03/24/2018, 9:28 PMsajmil
03/24/2018, 9:43 PMhoria.ancas
03/25/2018, 9:41 AMChanges:
User (Type)
~ Updated field `email`. It became required.
~ Updated field `password`. It became required.
Applying changes (1/2) ⣻
spences10
03/25/2018, 1:37 PM