Ramsay Lanier
02/15/2018, 2:48 AMRamsay Lanier
02/15/2018, 2:48 AMRamsay Lanier
02/15/2018, 2:49 AMRamsay Lanier
02/15/2018, 2:49 AMRamsay Lanier
02/15/2018, 2:50 AMctx.db.query.rules
atito
02/15/2018, 6:25 AMtype User {
id: ID! @unique
followers: [User!]!
following: [User!]!
}
But I believe that is not efficient or how prisma will deal with something like that?
thanks in advanceRaeesaa
02/15/2018, 9:51 AMChristian
02/15/2018, 10:45 AMigm
02/15/2018, 11:15 AMigm
02/15/2018, 11:15 AMpatrick
02/15/2018, 11:16 AMrein
02/15/2018, 12:56 PMThe value in the field 'prices' is not a valid Json: '\"{\\\"usd\\\":\\\"7.99\\\",\\\"cad\\\":\\\"9.87\\\",\\\"mxn\\\":\\\"150.99\\\}"'
rein
02/15/2018, 12:57 PMprices = JSON.stringify({ usd: ...})
and also as just prices = { usd: ...}
rein
02/15/2018, 12:57 PMrein
02/15/2018, 1:08 PMconst prices = {
usd: fetchedGame.usd,
cad: fetchedGame.cad,
mxn: fetchedGame.mxn
};
return api.request(`
mutation($prices: Json!) {
updateNAGame(
id: "${dbGame.id}"
title: "${fetchedGame.title}"
imageUrl: "${fetchedGame.imageUrl}"
releaseDate: "${fetchedGame.releaseDate}"
usd: "${fetchedGame.usd}"
cad: "${fetchedGame.cad}"
mxn: "${fetchedGame.mxn}"
eshopLink: "${fetchedGame.eshopLink}"
prices: $prices
){
id
}
}
`,
{ prices: prices }
)
Nick Luger
02/15/2018, 1:38 PMfreder
02/15/2018, 2:16 PMA project with the name 'XXX' already exists in your account
(when trying to deploy locally)? → https://goo.gl/v9FiUZCarl
02/15/2018, 2:51 PMCarl
02/15/2018, 2:52 PMinvoice.id
to make sure im listening/publishing to the same channelMaxime Scibetta
02/15/2018, 3:14 PMHTTP & WS
Moritz
02/15/2018, 3:42 PMjohhansantana
02/15/2018, 4:05 PMMoritz
02/15/2018, 4:15 PMconst res = await ctx.db.mutation.updateWall({
where: { id: wall },
data: {
posts: {
create: {
text,
author: {
connect: {
id: userId
},
},
image: {
connect: image
}
}
}
}
}, `{
id
posts{
id
}
}`)
throws the error:
Error: Variable "$_data" got invalid value {"posts":{"create":{"text":"Hello","author":{"connect":{"id":"cjdd86u0kfo8x0122460gymjb"}},"image":{}}}}; Field value.where of required type WallWhereUniqueInput! was not provided.
mike.johnson
02/15/2018, 4:33 PMSimon
02/15/2018, 5:25 PMSimon
02/15/2018, 5:25 PMAdam King
02/15/2018, 6:33 PMsteveb
02/15/2018, 7:03 PMtype Artist @model {
createdAt: DateTime!
updatedAt: DateTime!
id: ID! @isUnique
firstName: String!
lastName: String!
fullName: `{$firstName} {$lastName}`
}
steveb
02/15/2018, 7:03 PMsteveb
02/15/2018, 7:04 PM