user
05/03/2017, 7:54 AMhttps://prisma.slack.com/files/U4Q8USMJT/F574918AU/screenshot.png▾
user
05/03/2017, 7:54 AMhttps://prisma.slack.com/files/U4Q8USMJT/F574918AU/screenshot.png▾
joar
05/03/2017, 7:58 AMjoar
05/03/2017, 7:58 AMjoar
05/03/2017, 8:00 AMuser
05/03/2017, 8:46 AMhttps://prisma.slack.com/files/U4Q8USMJT/F574918AU/screenshot.png▾
nish
05/03/2017, 9:25 AMartyom
05/03/2017, 9:34 AMvladfaust
05/03/2017, 9:51 AMalexc
05/03/2017, 10:16 AMalexc
05/03/2017, 10:17 AMmonkeybonkey
05/03/2017, 1:30 PMcaurelio
05/03/2017, 1:55 PMbobbyt
05/03/2017, 1:57 PMserverless-image-proxy
built into Graphcool's API to generate dynamically resized images per https://www.graph.cool/docs/reference/platform/file-management-eer4wiang0/#image-api ?bobbyt
05/03/2017, 2:03 PMadamibaker
05/03/2017, 3:38 PM[Json!]
? i keep getting errors when trying to mutate. i've tried several variations of encoding my data, but it just won't land. i am sure i'm doing something obviously wrong. 😉
userId = 'hashed-id' // is actual User ID
data = ["{\"details\":{\"title\":\"Local notification\",\"body\":\"The rain in spain stays mainly in the plain.\",\"data\":{\"actionId\":\"foobar\"}},\"schedule\":{\"time\":1493825142658}}"]
The error:
{
"message": "Syntax Error GraphQL (4:30) Expected Name, found String \"details\"\n\n3: id: \"hashed-id\"\n4: notificationsLocal: {\"details\":{\"title\":\"Local notification\",\"body\":\"The rain in spain stays mainly in the plain.\",\"data\":{\"actionId\":\"foobar\"}},\"schedule\":{\"time\":1493825773188}}\n ^\n5: ) {\n",
"locations": [
{
"line": 4,
"column": 30
}
]
}
My mutation:
client.mutate({
mutation: gql`mutation {
updateUser(
id: "${userId}"
notificationsLocal: ${data}
) {
notificationsLocal
}
}`
})
bogdan
05/03/2017, 3:40 PMapollo.umd.js:1851 Uncaught (in promise) Error: GraphQL error: Whoops. Looks like an internal server error. Please contact us in Slack (<https://slack.graph.cool>) and send us your Request ID: cj295c5ix9b7z0115599m53mv
artyom
05/03/2017, 4:40 PMuser
05/03/2017, 5:10 PMhttps://prisma.slack.com/files/U4Q8USMJT/F574918AU/screenshot.png▾
user
05/03/2017, 5:10 PMhttps://prisma.slack.com/files/U4Q8USMJT/F574918AU/screenshot.png▾
user
05/03/2017, 5:11 PMhttps://prisma.slack.com/files/U4Q8USMJT/F574918AU/screenshot.png▾
user
05/03/2017, 5:13 PMhttps://prisma.slack.com/files/U4Q8USMJT/F574918AU/screenshot.png▾
aurnik
05/03/2017, 6:00 PMadrien
05/03/2017, 6:26 PMdr.phil
05/03/2017, 6:30 PMandrius
05/03/2017, 7:59 PMnotrab
05/03/2017, 8:37 PMartyom
05/03/2017, 9:39 PMfourcolors
05/04/2017, 1:18 AMfourcolors
05/04/2017, 1:18 AM