matty
07/25/2017, 4:50 AMmatty
07/25/2017, 4:52 AMmatty
07/25/2017, 5:10 AMupdateUser(id:".XYZ", postIds:[] ) { ... }
matty
07/25/2017, 5:10 AM"message": "The field 'user' on type 'Post' is required. Performing this mutation would violate the constraint",
matty
07/25/2017, 5:10 AMmatty
07/25/2017, 5:14 AMmatty
07/25/2017, 5:26 AMPost
without giving a user?!nephix
07/25/2017, 7:54 AMpicosam
07/25/2017, 9:36 AMfetch
inside a Schema Extension function, which may return the following result:
{
"error": "invalid_grant",
"error_description": "Authorization code does not exist: {AUTHORIZATION_CODE}"
}
I’m trying to make the error re-surface by using the following:
return callApiMethod()
.then(result => {
if (result.error) {
return result
}
return anotherFunctionCall()
})
But this results in the following error when I call the mutation:
"code": 5004,
"message": "Returned Json Object does not match the GraphQL type: Expected String as JsString, but got {\"error\":\"invalid_grant\",\"error_description\":\"Authorization code does not exist: test\"}",
"requestId": "cj5jdlav7escm0159es7eu6d7"
frankspin
07/25/2017, 9:45 AMculinaru
07/25/2017, 10:36 AMandre
07/25/2017, 1:49 PMCar
has exactly one File
. A Truck
has exactly one File as well. Is there a way that those two relations are not reflected in the File
entity – so that the File can only be reached via the Car
or the Truck
but not via File
?mikael
07/25/2017, 3:11 PMerror: unexpected
query AllMessagesQuery {
...
it starts after the
ALL_MESSAGES_QUERY = gql`
^
mikael
07/25/2017, 3:12 PMmikael
07/25/2017, 3:21 PMuser
07/25/2017, 3:24 PMmikael
07/25/2017, 3:25 PMnilan
07/25/2017, 3:26 PMnilan
07/25/2017, 3:26 PMnilan
07/25/2017, 3:26 PMmikael
07/25/2017, 3:27 PMModule build failed: Error:
nilan
07/25/2017, 3:27 PMmikael
07/25/2017, 3:28 PMwebpack: Failed to compile.
so compiler errornilan
07/25/2017, 3:28 PMmikael
07/25/2017, 3:29 PMnilan
07/25/2017, 3:29 PMgql
thing is not handled correctlymikael
07/25/2017, 3:30 PMdankent
07/25/2017, 3:30 PMnilan
07/25/2017, 3:30 PMdankent
07/25/2017, 3:31 PM