alex_ye
02/11/2017, 12:45 PMalex_ye
02/11/2017, 12:45 PMalex_ye
02/11/2017, 12:46 PMwallslide
02/11/2017, 1:28 PMwallslide
02/11/2017, 1:42 PMwallslide
02/11/2017, 2:17 PMsend(res, 400, { error: `Customer ${customerId} could not be charged` })
wallslide
02/11/2017, 2:18 PMmulyoved
02/11/2017, 5:02 PMlet cmd = `{
createDish(
name: "Test"
) {
id
}`;
any known problem? any suggested way to debug this?mulyoved
02/11/2017, 5:03 PMit('upload-data-to-graphcool', (done) => {
let cmd = `{
createDish(
name: "Test"
) {
id
}`;
console.log(cmd);
client.mutate(cmd)
.then((answer) => {
console.log(answer);
expect(answer).toBeTruthy();
done();
})
.catch((err) => {
console.error(err.stack);
done(err);
})
})
mulyoved
02/11/2017, 5:11 PMmruzekw
02/11/2017, 7:22 PM{
"data": null,
"errors": [
{
"message": "Unknown argument 'email' on field 'createUser' of type 'Mutation'. (line 2, column 71):\n createUser(authProvider: {auth0: {idToken: $idToken}}, name: $name, email: $email) {\n ^",
"locations": [
{
"line": 2,
"column": 71
}
]
}
]
}
mruzekw
02/11/2017, 7:23 PMemail
as a field, so I’m not sure what the issue ismruzekw
02/11/2017, 8:37 PMThe specified default value '["USER"]' is not a valid Enum Value for this field
sorenbs
mruzekw
02/11/2017, 8:41 PMtim2
02/12/2017, 9:12 AMmulyoved
02/12/2017, 11:39 AMuser
02/12/2017, 11:43 AMhttps://prisma.slack.com/files/U448J9R1A/F43KDHSC8/2-12-2017_1-36-25_pm.png▾
user
02/12/2017, 11:47 AMhttps://prisma.slack.com/files/U448J9R1A/F43KDHSC8/2-12-2017_1-36-25_pm.png▾
user
02/12/2017, 11:48 AMhttps://prisma.slack.com/files/U448J9R1A/F43KDHSC8/2-12-2017_1-36-25_pm.png▾
mulyoved
02/12/2017, 12:06 PMuser
02/12/2017, 12:08 PMhttps://prisma.slack.com/files/U448J9R1A/F43KDHSC8/2-12-2017_1-36-25_pm.png▾
mulyoved
02/12/2017, 12:12 PMthomaslove
02/12/2017, 3:48 PMnilan
02/12/2017, 3:49 PMthomaslove
02/12/2017, 3:50 PManthony_renard
02/12/2017, 5:18 PMvinspee
02/12/2017, 5:55 PMQuestion
enitity which has an asker
with a User
type, and voters
with a [User]
type. I’d like the “createQuestion” mutation to create the entity, assign a user as the asker
, and add that same user to the voters
array. How can I do this?mulyoved
02/12/2017, 7:53 PMuser
02/12/2017, 7:54 PMhttps://prisma.slack.com/files/U448J9R1A/F43MUJD6V/2-12-2017_9-52-09_pm.png▾
id: null