Return all fields needed to update cache

This commit is contained in:
Rob Cameron
2020-11-02 13:46:07 -08:00
parent 7e74567326
commit 590093a671

View File

@@ -16,6 +16,9 @@ const UPDATE_POST_MUTATION = gql`
mutation UpdatePostMutation($id: Int!, $input: UpdatePostInput!) { mutation UpdatePostMutation($id: Int!, $input: UpdatePostInput!) {
updatePost(id: $id, input: $input) { updatePost(id: $id, input: $input) {
id id
title
body
createdAt
} }
} }
` `