summaryrefslogtreecommitdiffstats
path: root/frontend/queries/index.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-03-22 16:29:31 -0400
committerWes Bos <wesbos@gmail.com>2018-03-22 16:29:31 -0400
commita6af043686e4375d7944e91cae3d5b63c59edab0 (patch)
treef814d412b14a2a47f56c933ce38f458055f2f83b /frontend/queries/index.js
parent93495ce146c4e81ecfab3a0bca99460e75a759da (diff)
Migrate to render props
Diffstat (limited to 'frontend/queries/index.js')
-rw-r--r--frontend/queries/index.js5
1 files changed, 2 insertions, 3 deletions
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) {