From 22635ea05dab85a71fa93dbb98f93da7670ef899 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 25 May 2018 14:06:53 -0400 Subject: Delete and Add refetch refinements --- frontend/components/Items.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/components/Items.js') diff --git a/frontend/components/Items.js b/frontend/components/Items.js index 394f16d..5694d0b 100644 --- a/frontend/components/Items.js +++ b/frontend/components/Items.js @@ -9,7 +9,7 @@ import LoadingItem from './LoadingItem'; import { perPage } from '../config'; const ALL_ITEMS_QUERY = gql` - query ALL_ITEMS_QUERY($skip: Int = 0, $first: Int = 4) { + query ALL_ITEMS_QUERY($skip: Int = 0, $first: Int = ${perPage}) { items(orderBy: createdAt_DESC, first: $first, skip: $skip) { __typename id -- cgit v1.3