summaryrefslogtreecommitdiffstats
path: root/frontend/queries/index.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-02-28 15:28:15 -0500
committerWes Bos <wesbos@gmail.com>2018-02-28 15:28:15 -0500
commitf7bea2d1b7be2b70dceb25c9837f608b538e9cec (patch)
tree3bac7ad6d76fe9eca1d97f92109d709a141bfc00 /frontend/queries/index.js
parent8f2c595eca30e2d7138c8e8d6685774a8f44e55d (diff)
what
Diffstat (limited to 'frontend/queries/index.js')
-rw-r--r--frontend/queries/index.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/frontend/queries/index.js b/frontend/queries/index.js
index beaec05..87f66b9 100644
--- a/frontend/queries/index.js
+++ b/frontend/queries/index.js
@@ -99,6 +99,25 @@ export const SINGLE_ITEM_QUERY = gql`
}
`;
+export const SINGLE_ORDER_QUERY = gql`
+ query order($id: ID!) {
+ order(where: { id: $id }) {
+ id
+ charge
+ total
+ createdAt
+ items {
+ id
+ title
+ price
+ description
+ image
+ quantity
+ }
+ }
+ }
+`;
+
export const SEARCH_ITEMS_QUERY = gql`
${itemDetails}
query SearchItems($searchTerm: String!) {