Kamek
01/25/2019, 4:21 PMKamek
01/25/2019, 4:22 PMbenjick
01/25/2019, 7:18 PMAnthony
01/25/2019, 7:38 PMslackyslack
01/25/2019, 7:47 PMpong
01/25/2019, 9:44 PManton-b
01/25/2019, 9:56 PMrobotlemons
01/26/2019, 4:55 PMdan
01/26/2019, 10:59 PMdan
01/26/2019, 11:01 PMtype Shop {
id: ID! @id
shopInvitations: [ShopInvitation!]! @relation(name: "ShopInvitations", link: INLINE)
}
type ShopInvitation {
id: ID! @id
shop: Shop! @relation(name: "ShopInvitations")
}
dan
01/26/2019, 11:01 PMdan
01/26/2019, 11:02 PMShopInvitation: {
shop: async (parent, args, ctx, info) => {
const shop = await <http://ctx.db.shop|ctx.db.shop>({ where: { shopInvitations_some: { id: parent.id } } })
console.log(shop)
return shop
},
},
dan
01/26/2019, 11:02 PMdan
01/26/2019, 11:05 PM.shops()[0]
rather than .shop()
with this code above, before when using bindings, i wouldnt have to add each child resource implementation, it was all automatic, but shortly after found there to be a lot of missing functionality when it came to mutating data with prisma bindings.Steveeeie
01/26/2019, 11:07 PM@unique
such as id: ID! @unique
when using the singular like .shop
- Sorry if I'm not describing this very well.dan
01/26/2019, 11:57 PMdan
01/26/2019, 11:57 PMinvitation.shopId
?dan
01/27/2019, 12:01 AMdan
01/27/2019, 12:02 AMlink: INLINE
dan
01/27/2019, 12:02 AMdan
01/27/2019, 12:02 AMdan
01/27/2019, 12:02 AMdan
01/27/2019, 12:03 AMrein
01/27/2019, 10:00 AMopenefit
01/27/2019, 11:41 AMMax Ast
01/27/2019, 3:23 PMFetchError: request to <https://eu1.prisma.sh/myusername/XYZ/dev> failed, reason: getaddrinfo ENOTFOUND eu1.prisma.sh eu1.prisma.sh:443
at ClientRequest.<anonymous> (/Users/MaxAst/myapp/node_modules/node-fetch/lib/index.js:1393:11)
at ClientRequest.emit (events.js:182:13)
at TLSSocket.socketErrorListener (_http_client.js:399:9)
at TLSSocket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
Max Ast
01/27/2019, 3:24 PMhuv1k
01/27/2019, 5:02 PMgraphql-playground
floating around. New version introduces schema polling for better DX https://user-images.githubusercontent.com/16107563/51575952-243eb700-1e69-11e9-8e9d-fe5c10e9871d.gif▾
donedgardo
01/27/2019, 8:29 PMrawriclark
01/27/2019, 10:12 PM