mike.johnson
08/16/2017, 4:28 PMpeter
08/16/2017, 7:16 PM.graphql
files?dtuite
08/16/2017, 10:14 PMUser
with many Post
User {
id
postCount
}
Post {
id
userId
}
When I’m creating a post, I can update the postCount
in a function because the userId
is available in the payload of the Post
.
When deleting a Post
, I only seem to receive the id
of the Post
in the payload. If I try to use this to look up the user I find the post is already deleted (even in pre-write). I can’t add the user id to the payload either. Doing so makes my mutation fail.
How can I figure out who owned the post in the function?justinrich
08/16/2017, 10:20 PMjustinrich
08/16/2017, 10:20 PMjustinrich
08/16/2017, 10:20 PMjustinrich
08/16/2017, 10:21 PMjustinrich
08/16/2017, 10:21 PMjustinrich
08/16/2017, 10:21 PMjferrettiboke
08/16/2017, 10:43 PMeder
08/16/2017, 10:59 PMjustinrich
08/16/2017, 11:12 PMjustinrich
08/16/2017, 11:12 PMjustinrich
08/16/2017, 11:13 PMihatenonoildressing
08/17/2017, 6:58 AManton-b
08/17/2017, 7:15 AMihatenonoildressing
08/17/2017, 7:16 AMihatenonoildressing
08/17/2017, 7:16 AMihatenonoildressing
08/17/2017, 7:16 AMihatenonoildressing
08/17/2017, 7:31 AMmatty
08/17/2017, 8:03 AMmatty
08/17/2017, 8:23 AMyakupad
08/17/2017, 8:24 AMmatty
08/17/2017, 9:15 AMmatty
08/17/2017, 9:16 AMStefan
08/17/2017, 9:43 AMmatty
08/17/2017, 10:05 AMevent.context.headers
, but when I try to read this in my function it throws an errormatty
08/17/2017, 10:05 AMcontext.headers
path?Daniel K.
08/17/2017, 10:21 AMmatty
08/17/2017, 12:24 PM