summaryrefslogtreecommitdiffstats
path: root/frontend/queries
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-04-13 10:14:04 -0400
committerWes Bos <wesbos@gmail.com>2018-04-13 10:14:04 -0400
commitcabc86b83951b9fefb7e864fba82f1d93715c805 (patch)
tree26795af6522c07f68cfaea66a7e88965e0480cf0 /frontend/queries
parent97b6de6aa437f7a913a33b9e6aa18a919faf2caf (diff)
variables
Diffstat (limited to 'frontend/queries')
-rw-r--r--frontend/queries/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/queries/index.js b/frontend/queries/index.js
index 26eae35..f4442b1 100644
--- a/frontend/queries/index.js
+++ b/frontend/queries/index.js
@@ -1,5 +1,6 @@
import gql from 'graphql-tag';
import { itemDetails } from './fragments';
+import { perPage } from '../config';
export const CREATE_ITEM_MUTATION = gql`
${itemDetails}
@@ -74,7 +75,7 @@ export const CREATE_ORDER_MUTATION = gql`
export const ALL_ITEMS_QUERY = gql`
# Import the Fragment
${itemDetails}
- query AllItemsQuery($skip: Int = 0, $first: Int = 2) {
+ query AllItemsQuery($skip: Int = 0, $first: Int = ${perPage}) {
itemsConnection(orderBy: createdAt_DESC, first: $first, skip: $skip) @connection(key: "itemsConnection") {
aggregate {
count