playerx
08/22/2018, 10:35 AMprisma:1.8, lets say schema looks like this:
type User {
id: ID! @unique
accounts: [Account!]!
}
type Account {
id: ID! @unique
}
I’ve updated to prisma:1.14 (also tried `prisma:1.15.0-beta`& prisma:1.16-alpha) and I’m missing connect api:
mutation {
updateUser(
where: { id: "123" },
data: { accounts: { connect: { id: "123" } } }
) {
id
}
}
there is only create and I didnt find way how to connect existing nodes (rows) that already exists
thanks 🙂