summaryrefslogtreecommitdiffstats
path: root/frontend/enhancers/enhancers.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/enhancers/enhancers.js')
-rw-r--r--frontend/enhancers/enhancers.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/frontend/enhancers/enhancers.js b/frontend/enhancers/enhancers.js
new file mode 100644
index 0000000..525c720
--- /dev/null
+++ b/frontend/enhancers/enhancers.js
@@ -0,0 +1,13 @@
+import { ALL_ITEMS_QUERY } from "../queries/index";
+import { graphql } from "react-apollo";
+
+export const itemEnhancer = graphql(ALL_ITEMS_QUERY, {
+ name: "allItemsQuery",
+ options({ page }) {
+ return {
+ variables: {
+ skip: page * 3 - 3
+ }
+ };
+ }
+});