rem
01/29/2019, 2:12 PMprisma.$subscription
in Jest, and I get the node()
return value, but it's not clear how to close the socket (from the prisma docs). Any clues?dan
01/29/2019, 2:33 PMSlackbot
01/29/2019, 2:54 PMrawriclark
01/29/2019, 3:05 PMrawriclark
01/29/2019, 3:05 PMrawriclark
01/29/2019, 3:05 PMrawriclark
01/29/2019, 3:06 PMKris Temmerman
01/29/2019, 3:31 PMKris Temmerman
01/29/2019, 3:31 PMERROR: Cannot read property 'managementApiSecret' of null
{
"data": {
"generateClusterToken": null
},
"errors": [
{
"message": "Cannot read property 'managementApiSecret' of null",
"locations": [
{
"line": 3,
"column": 9
}
],
"path": [
"generateClusterToken"
],
"code": 222
}
],
"status": 200
}
Kris Temmerman
01/29/2019, 3:32 PMCJ Fravel
01/29/2019, 4:55 PMSamuel Roth
01/29/2019, 6:08 PMdan
01/29/2019, 6:13 PMUser: {
posts(parent, args, ctx, info) {
return ctx.db.user({ id: parent.id }).posts()
},
friends(parent, args, ctx, info) {
return ctx.db.user({ id: parent.id }).friends()
},
},
dan
01/29/2019, 6:14 PMdan
01/29/2019, 6:14 PMdan
01/29/2019, 6:14 PMposts: [Post]!
friends: [User]!
Joseph Carrington
01/29/2019, 6:38 PMtype CartItem {
id: ID! @unique
quantity: Int! @default(value: 1)
owner: PortalUser! @relation(name: "ItemOnUser")
productId: ID!
createdAt: DateTime!
updatedAt: DateTime!
dummy: String! @default(value: "Dummy")
}
type PortalUser {
portalId: String! @unique
createdAt: DateTime!
updatedAt: DateTime!
cart: [CartItem!]! @relation(name: "ItemOnUser", onDelete: CASCADE)
isGuest: Boolean! @default(value: "true")
dummy: String! @default(value: "Dummy")
}
Now I want to import a cart form one user to another. I’d like to run something like
`
updateManyCartItems(where:
{
owner: oldOwner
} data {
owner: newOwner
})
But I cannot batch edit the owners of cartItems (it’s just not an option under updateManyCartItems’ data arg). Why is this? I am sure this is trying to tell me something, but I am not sure what I should be learning from it. Thanks!impowski
01/29/2019, 6:48 PMDELETE NODE
inside Prisma Admin a couple times and my server got this:Samuel Roth
01/29/2019, 6:48 PMarush
01/29/2019, 8:22 PMAnthony
01/29/2019, 8:33 PMAndriana Angelevska
01/29/2019, 9:15 PMdan
01/29/2019, 9:34 PMdan
01/29/2019, 9:34 PMdan
01/29/2019, 9:35 PMdan
01/30/2019, 1:22 AMdan
01/30/2019, 1:24 AMsoqt
01/30/2019, 3:01 AMJames Hunyar
01/30/2019, 3:49 AMJames Hunyar
01/30/2019, 3:49 AM