Browse Source

chore: Commit benchmark gql documents

Michael Bromley 3 years ago
parent
commit
23b7277199

+ 14 - 0
packages/dev-server/load-testing/graphql/admin/get-order-list-expanded.graphql

@@ -0,0 +1,14 @@
+query GetOrderList($options: OrderListOptions) {
+    orders(options: $options) {
+        totalItems
+        items {
+            id
+            state
+            currencyCode
+            totalQuantity
+            subTotalWithTax
+            totalWithTax
+            shippingWithTax
+        }
+    }
+}

+ 8 - 0
packages/dev-server/load-testing/graphql/admin/get-order-list-ids.graphql

@@ -0,0 +1,8 @@
+query GetOrderList($options: OrderListOptions) {
+    orders(options: $options) {
+        totalItems
+        items {
+            id
+        }
+    }
+}

+ 33 - 0
packages/dev-server/load-testing/graphql/admin/get-order-list.graphql

@@ -0,0 +1,33 @@
+query GetOrderList($options: OrderListOptions) {
+    orders(options: $options) {
+        totalItems
+        items {
+            id
+            state
+            currencyCode
+            totalQuantity
+            subTotalWithTax
+            totalWithTax
+            shippingWithTax
+            shippingLines {
+                shippingMethod {
+                    id
+                    name
+                }
+                priceWithTax
+            }
+            lines {
+                productVariant {
+                    id
+                    name
+                }
+                featuredAsset {
+                    id
+                    preview
+                }
+                linePriceWithTax
+                quantity
+            }
+        }
+    }
+}

+ 29 - 0
packages/dev-server/load-testing/graphql/admin/get-product-list.graphql

@@ -0,0 +1,29 @@
+query GetProductList($options: ProductListOptions) {
+    products(options: $options) {
+        totalItems
+        items {
+            id
+            name
+            slug
+            description
+            optionGroups {
+                id
+                name
+            }
+            enabled
+            variants {
+                id
+                name
+                sku
+                stockLevel
+                priceWithTax
+                currencyCode
+                options {
+                    id
+                    name
+                    groupId
+                }
+            }
+        }
+    }
+}

+ 11 - 0
packages/dev-server/load-testing/graphql/admin/login.graphql

@@ -0,0 +1,11 @@
+mutation LogIn($username: String! $password: String!) {
+    login(username: $username password: $password) {
+        ...on CurrentUser {
+            id
+        }
+        ...on ErrorResult {
+            errorCode
+            message
+        }
+    }
+}