From a6af043686e4375d7944e91cae3d5b63c59edab0 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 22 Mar 2018 16:29:31 -0400 Subject: Migrate to render props --- frontend/queries/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'frontend/queries') diff --git a/frontend/queries/index.js b/frontend/queries/index.js index bee7e78..94070e8 100644 --- a/frontend/queries/index.js +++ b/frontend/queries/index.js @@ -75,12 +75,12 @@ export const ALL_ITEMS_QUERY = gql` # Import the Fragment ${itemDetails} query AllItemsQuery($skip: Int = 0, $first: Int = 3) { - itemsConnection(orderBy: createdAt_DESC, first: $first, skip: $skip) { + itemsConnection(orderBy: createdAt_DESC, first: $first, skip: $skip) @connection(key: "itemsConnection") { aggregate { count } } - items(orderBy: createdAt_DESC, first: $first, skip: $skip) { + items(orderBy: createdAt_DESC, first: $first, skip: $skip) @connection(key: "items") { ...itemDetails } } @@ -161,7 +161,6 @@ export const UPDATE_LINK_MUTATION = gql` } `; -// TODO: Can't this accept an updates object?? export const UPDATE_USER_MUTATION = gql` mutation UpdateUser($name: String!) { updateUser(name: $name) { -- cgit v1.3