summaryrefslogtreecommitdiffstats
path: root/frontend/queries
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/queries')
-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!) {