Industrial
11/27/2018, 10:40 PMIndustrial
11/27/2018, 10:40 PMIndustrial
11/27/2018, 10:40 PMtype User @model {
id: ID! @unique
name: String!
dashboard: Dashboard @relation(name: "UserDashboard" onDelete: CASCADE)
}
type Dashboard @model {
id: ID! @unique
user: User! @relation(name: "UserDashboard")
charts: [Chart!]! @relation(name: "DashboardCharts" onDelete: CASCADE)
}
huv1k
11/27/2018, 10:41 PMEliezer Braun
11/27/2018, 10:45 PMEliezer Braun
11/27/2018, 10:53 PMEliezer Braun
11/27/2018, 10:53 PMrwatts3
11/27/2018, 11:23 PMErmolay
11/27/2018, 11:39 PMGorodov Maksim
11/28/2018, 1:20 AMGorodov Maksim
11/28/2018, 1:21 AMdivyendu
11/28/2018, 7:04 AMJohn Smeeth
11/28/2018, 7:46 AMJohn Smeeth
11/28/2018, 7:47 AMJohn Smeeth
11/28/2018, 7:47 AMcreateDraft
mutationJohn Smeeth
11/28/2018, 7:47 AMerr: graphql: Project not found: 'go-graphql$dev'
John Smeeth
11/28/2018, 7:50 AMelymatos
11/28/2018, 9:24 AMelymatos
11/28/2018, 10:50 AMk0ff33
11/28/2018, 2:50 PMtype Product { name: String!, category: [ProductCategory!]! }
and type ProductCategory { name: String! @unique }
I’d like to do mutation { createProduct( data: { name: "New product", category: { createOrConnect: { name: "Category A" } } }) }
and make sure the same mutation works when creating “New Product 2” without checking if “Category A” exists. I’ve tried defining both create and connect but that doesn’t work. Thanks!wontwon
11/28/2018, 3:31 PMrajit
11/28/2018, 6:10 PMprisma-client-lib
? It doesn’t seem possible to fetch the full { mutation, previousValues, node, updatedFields }
payload at once. You can either subscribe to node
, previousValues
or { mutation, updatedFields }
. (issue reported here: https://www.prisma.io/forum/t/prisma-client-1-19-and-subscription-big-problem/4775/5)rajit
11/28/2018, 6:13 PMrajit
11/28/2018, 6:14 PMrajit
11/28/2018, 6:28 PMprisma-client-lib
Naka
11/28/2018, 8:45 PMwhere
search fields case-insensitive on Prisma? I migrated my current data from graphcool and it used to handle case sensitive on filter fields...impowski
11/28/2018, 8:55 PMprisma token
?impowski
11/28/2018, 9:06 PMrwatts3
11/28/2018, 9:24 PMspences10
11/29/2018, 11:46 AM