@vendure/docs 0.0.0-202601161603 → 0.0.0-202601161707
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/manifest.js +1 -1
- package/dist/manifest.js.map +1 -1
- package/docs/guides/core-concepts/collections/index.mdx +0 -3
- package/docs/guides/core-concepts/orders/index.mdx +0 -4
- package/docs/guides/core-concepts/payment/index.mdx +0 -3
- package/docs/guides/core-concepts/shipping/index.mdx +0 -3
- package/docs/guides/core-concepts/stock-control/index.mdx +0 -3
- package/docs/guides/deployment/deploy-to-digital-ocean-app-platform/index.mdx +1 -1
- package/docs/guides/deployment/deploy-to-northflank/index.mdx +0 -3
- package/docs/guides/deployment/deploy-to-railway/index.mdx +2 -2
- package/docs/guides/deployment/deploy-to-render/index.mdx +1 -1
- package/docs/guides/deployment/getting-data-into-production.mdx +0 -2
- package/docs/guides/deployment/horizontal-scaling.mdx +2 -4
- package/docs/guides/deployment/production-configuration/index.mdx +3 -5
- package/docs/guides/deployment/using-docker.mdx +2 -4
- package/docs/guides/developer-guide/cli/index.mdx +0 -3
- package/docs/guides/developer-guide/configuration/index.mdx +0 -2
- package/docs/guides/developer-guide/custom-fields/index.mdx +0 -4
- package/docs/guides/developer-guide/dataloaders/index.mdx +1 -1
- package/docs/guides/developer-guide/db-subscribers/index.mdx +0 -2
- package/docs/guides/developer-guide/error-handling/index.mdx +0 -4
- package/docs/guides/developer-guide/logging/index.mdx +0 -2
- package/docs/guides/developer-guide/migrating-from-v1/breaking-api-changes.mdx +0 -2
- package/docs/guides/developer-guide/migrating-from-v1/database-migration.mdx +0 -2
- package/docs/guides/developer-guide/migrating-from-v1/index.mdx +0 -2
- package/docs/guides/developer-guide/migrating-from-v1/storefront-migration.mdx +0 -2
- package/docs/guides/developer-guide/migrations/index.mdx +0 -3
- package/docs/guides/developer-guide/plugins/index.mdx +0 -3
- package/docs/guides/developer-guide/security/index.mdx +1 -1
- package/docs/guides/developer-guide/settings-store/index.mdx +0 -7
- package/docs/guides/developer-guide/stand-alone-scripts/index.mdx +2 -4
- package/docs/guides/developer-guide/testing/index.mdx +1 -3
- package/docs/guides/developer-guide/the-api-layer/index.mdx +0 -3
- package/docs/guides/developer-guide/updating/index.mdx +0 -2
- package/docs/guides/developer-guide/uploading-files/index.mdx +0 -2
- package/docs/guides/extending-the-admin-ui/add-actions-to-pages/index.mdx +0 -3
- package/docs/guides/extending-the-admin-ui/adding-ui-translations/index.mdx +3 -3
- package/docs/guides/extending-the-admin-ui/creating-detail-views/index.mdx +0 -2
- package/docs/guides/extending-the-admin-ui/custom-data-table-components/index.mdx +0 -3
- package/docs/guides/extending-the-admin-ui/custom-detail-components/index.mdx +0 -3
- package/docs/guides/extending-the-admin-ui/custom-form-inputs/index.mdx +0 -3
- package/docs/guides/extending-the-admin-ui/defining-routes/index.mdx +0 -3
- package/docs/guides/extending-the-admin-ui/getting-started/index.mdx +0 -3
- package/docs/guides/extending-the-admin-ui/ui-library/index.mdx +0 -3
- package/docs/guides/extending-the-admin-ui/using-other-frameworks/index.mdx +1 -1
- package/docs/guides/extending-the-dashboard/creating-pages/detail-pages.mdx +0 -3
- package/docs/guides/extending-the-dashboard/creating-pages/index.mdx +0 -3
- package/docs/guides/extending-the-dashboard/creating-pages/list-pages.mdx +0 -3
- package/docs/guides/extending-the-dashboard/creating-pages/tabbed-pages.mdx +0 -3
- package/docs/guides/extending-the-dashboard/custom-form-components/form-component-examples.mdx +0 -4
- package/docs/guides/extending-the-dashboard/extending-overview/index.mdx +0 -3
- package/docs/guides/extending-the-dashboard/getting-started/index.mdx +0 -3
- package/docs/guides/extending-the-dashboard/localization/index.mdx +1 -1
- package/docs/guides/extending-the-dashboard/migration/index.mdx +0 -2
- package/docs/guides/getting-started/graphql-intro/index.mdx +0 -3
- package/docs/guides/getting-started/installation/index.mdx +1 -4
- package/docs/guides/getting-started/try-the-api/index.mdx +0 -3
- package/docs/guides/how-to/cms-integration-plugin/index.mdx +0 -3
- package/docs/guides/how-to/digital-products/index.mdx +0 -4
- package/docs/guides/how-to/github-oauth-authentication/index.mdx +0 -4
- package/docs/guides/how-to/google-oauth-authentication/index.mdx +0 -4
- package/docs/guides/how-to/multi-vendor-marketplaces/index.mdx +0 -2
- package/docs/guides/how-to/paginated-list/index.mdx +0 -3
- package/docs/guides/how-to/publish-plugin/index.mdx +0 -3
- package/docs/guides/how-to/s3-asset-storage/index.mdx +0 -4
- package/docs/guides/storefront/active-order/index.mdx +0 -2
- package/docs/guides/storefront/checkout-flow/index.mdx +0 -3
- package/docs/guides/storefront/connect-api/index.mdx +0 -4
- package/docs/guides/storefront/customer-accounts/index.mdx +0 -3
- package/docs/guides/storefront/listing-products/index.mdx +0 -4
- package/docs/guides/storefront/navigation-menu/index.mdx +0 -4
- package/docs/guides/storefront/order-workflow/index.mdx +0 -2
- package/docs/guides/storefront/product-detail/index.mdx +0 -4
- package/docs/reference/admin-ui-api/components/chip-component.mdx +1 -1
- package/docs/reference/admin-ui-api/components/currency-input-component.mdx +1 -1
- package/docs/reference/admin-ui-api/components/data-table-component.mdx +1 -1
- package/docs/reference/admin-ui-api/components/datetime-picker-component.mdx +1 -1
- package/docs/reference/admin-ui-api/components/dropdown-component.mdx +1 -1
- package/docs/reference/admin-ui-api/components/facet-value-selector-component.mdx +1 -1
- package/docs/reference/admin-ui-api/components/object-tree-component.mdx +1 -1
- package/docs/reference/admin-ui-api/components/order-state-label-component.mdx +1 -1
- package/docs/reference/admin-ui-api/components/product-variant-selector-component.mdx +1 -1
- package/docs/reference/admin-ui-api/components/rich-text-editor-component.mdx +1 -1
- package/docs/reference/admin-ui-api/index.mdx +0 -2
- package/docs/reference/admin-ui-api/pipes/asset-preview-pipe.mdx +1 -1
- package/docs/reference/admin-ui-api/pipes/has-permission-pipe.mdx +1 -1
- package/docs/reference/admin-ui-api/pipes/locale-currency-name-pipe.mdx +1 -1
- package/docs/reference/admin-ui-api/pipes/locale-currency-pipe.mdx +1 -1
- package/docs/reference/admin-ui-api/pipes/locale-date-pipe.mdx +1 -1
- package/docs/reference/admin-ui-api/pipes/locale-language-name-pipe.mdx +1 -1
- package/docs/reference/admin-ui-api/pipes/locale-region-name-pipe.mdx +1 -1
- package/docs/reference/admin-ui-api/pipes/time-ago-pipe.mdx +1 -1
- package/docs/reference/core-plugins/asset-server-plugin/s3asset-storage-strategy.mdx +2 -2
- package/docs/reference/core-plugins/elasticsearch-plugin/elasticsearch-options.mdx +1 -1
- package/docs/reference/core-plugins/harden-plugin/index.mdx +3 -3
- package/docs/reference/core-plugins/job-queue-plugin/bull-mqjob-queue-plugin.mdx +2 -2
- package/docs/reference/core-plugins/job-queue-plugin/bull-mqjob-queue-strategy.mdx +1 -1
- package/docs/reference/core-plugins/job-queue-plugin/pub-sub-job-queue-strategy.mdx +1 -1
- package/docs/reference/core-plugins/job-queue-plugin/pub-sub-plugin.mdx +1 -1
- package/docs/reference/core-plugins/payments-plugin/braintree-plugin.mdx +4 -4
- package/docs/reference/core-plugins/payments-plugin/mollie-plugin.mdx +2 -2
- package/docs/reference/core-plugins/payments-plugin/stripe-plugin.mdx +2 -2
- package/docs/reference/core-plugins/sentry-plugin/index.mdx +3 -3
- package/docs/reference/graphql-api/_index.mdx +0 -2
- package/docs/reference/graphql-api/admin/_index.mdx +0 -2
- package/docs/reference/graphql-api/shop/_index.mdx +0 -2
- package/docs/reference/typescript-api/_index.mdx +0 -2
- package/docs/reference/typescript-api/auth/authentication-strategy.mdx +1 -1
- package/docs/reference/typescript-api/cache/redis-cache-plugin.mdx +1 -1
- package/docs/reference/typescript-api/cache/redis-cache-strategy.mdx +1 -1
- package/docs/reference/typescript-api/data-access/list-query-builder.mdx +3 -3
- package/docs/reference/typescript-api/orders/active-order-strategy.mdx +2 -2
- package/docs/reference/typescript-api/payment/dummy-payment-handler.mdx +1 -1
- package/docs/reference/typescript-api/request/relations-decorator.mdx +2 -2
- package/docs/user-guide/catalog/collections.mdx +0 -2
- package/docs/user-guide/catalog/facets.mdx +0 -2
- package/docs/user-guide/catalog/products.mdx +0 -2
- package/docs/user-guide/customers/index.mdx +0 -2
- package/docs/user-guide/index.mdx +4 -2
- package/docs/user-guide/localization/index.mdx +0 -2
- package/docs/user-guide/orders/draft-orders.mdx +0 -2
- package/docs/user-guide/orders/orders.mdx +0 -2
- package/docs/user-guide/promotions/index.mdx +0 -2
- package/docs/user-guide/settings/administrators-roles.mdx +0 -2
- package/docs/user-guide/settings/channels.mdx +0 -2
- package/docs/user-guide/settings/countries-zones.mdx +0 -2
- package/docs/user-guide/settings/global-settings.mdx +0 -2
- package/docs/user-guide/settings/payment-methods.mdx +0 -2
- package/docs/user-guide/settings/shipping-methods.mdx +0 -2
- package/docs/user-guide/settings/taxes.mdx +0 -2
- package/package.json +1 -1
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
title: "UI Component Library"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
|
|
8
5
|
The Admin UI is built on a customized version of the [Clarity Design System](https://clarity.design/documentation/get-started). This means that if you are writing Angular-based UI extensions, you can use the same components that are used in the rest of the Admin UI. If you are using React, we are gradually exporting the most-used components for use with React.
|
|
9
6
|
|
|
10
7
|
## Buttons
|
|
@@ -128,7 +128,7 @@ import '@vendure/admin-ui/static/theme.min.css';
|
|
|
128
128
|
|
|
129
129
|
If your extension does not have a build step, you can still include the theme stylesheet as a local resource:
|
|
130
130
|
|
|
131
|
-
```
|
|
131
|
+
```html
|
|
132
132
|
<!-- src/ui-extension/plain-js-app/index.html -->
|
|
133
133
|
<head>
|
|
134
134
|
<link rel="stylesheet" href="../../theme.min.css" />
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
title: 'Extending the Dashboard'
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
|
|
8
5
|
The custom functionality you create in your Vendure plugins often needs to be exposed via the Dashboard so that
|
|
9
6
|
administrators can interact with it.
|
|
10
7
|
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
title: 'Getting Started'
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
|
|
8
5
|
:::info
|
|
9
6
|
From Vendure v3.5.0, the `@vendure/dashboard` package and configuration comes as standard with new projects that are started with
|
|
10
7
|
the `npx @vendure/create` command.
|
|
@@ -86,7 +86,7 @@ src/
|
|
|
86
86
|
Since we set the "sourceLocale" to be "en", the `en.po` file will already be complete. You'll then need to
|
|
87
87
|
open up the `de.po` file and add German translations for each of the strings, by filling out the empty `msgstr` values:
|
|
88
88
|
|
|
89
|
-
```
|
|
89
|
+
```text title="de.po"
|
|
90
90
|
#: test-plugins/reviews/dashboard/review-list.tsx:51
|
|
91
91
|
msgid "Welcome to Dashboard"
|
|
92
92
|
// highlight-next-line
|
|
@@ -3,8 +3,6 @@ title: Migrating from Admin UI
|
|
|
3
3
|
sidebar_position: 1
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Migrating from Admin UI
|
|
7
|
-
|
|
8
6
|
If you have existing extensions to the legacy Angular-based Admin UI, you will want to migrate to the new Dashboard to enjoy
|
|
9
7
|
an improved developer experience, many more customization options, and ongoing support from the Vendure team.
|
|
10
8
|
|
|
@@ -3,9 +3,6 @@ title: 'Installation'
|
|
|
3
3
|
sidebar_position: 1
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
import Tabs from '@theme/Tabs';
|
|
7
|
-
import TabItem from '@theme/TabItem';
|
|
8
|
-
|
|
9
6
|
## Requirements
|
|
10
7
|
|
|
11
8
|
- [Node.js](https://nodejs.org/en/) **v20**, **v22** and **v24** - these versions are tested and supported. (Odd-numbered versions above v20 should still work but are not officially supported.)
|
|
@@ -226,7 +223,7 @@ Use `npx vendure add` to start adding plugins & custom functionality to your Ven
|
|
|
226
223
|
|
|
227
224
|
- If you encounter any issues during installation, you can get a more detailed output by setting the log level to `verbose`:
|
|
228
225
|
|
|
229
|
-
```
|
|
226
|
+
```bash
|
|
230
227
|
npx @vendure/create my-shop --log-level verbose
|
|
231
228
|
```
|
|
232
229
|
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
title: 'Building a CMS Integration Plugin'
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
|
|
8
5
|
A CMS integration plugin allows you to automatically synchronize your Vendure product catalog with an external Content Management System.
|
|
9
6
|
|
|
10
7
|
This is done in a way that establishes Vendure as the source of truth for the ecommerce's data.
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
title: "Digital Products"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import Tabs from '@theme/Tabs';
|
|
7
|
-
import TabItem from '@theme/TabItem';
|
|
8
|
-
|
|
9
5
|
Digital products include things like ebooks, online courses, and software. They are products that are delivered to the customer electronically, and do not require
|
|
10
6
|
physical shipping.
|
|
11
7
|
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
title: "GitHub OAuth Authentication"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import Tabs from '@theme/Tabs';
|
|
7
|
-
import TabItem from '@theme/TabItem';
|
|
8
|
-
|
|
9
5
|
:::info
|
|
10
6
|
The complete source of the following example plugin can be found here: [example-plugins/github-auth-plugin](https://github.com/vendurehq/examples/tree/publish/examples/shop-github-auth)
|
|
11
7
|
:::
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
title: "Google OAuth Authentication"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import Tabs from '@theme/Tabs';
|
|
7
|
-
import TabItem from '@theme/TabItem';
|
|
8
|
-
|
|
9
5
|
:::info
|
|
10
6
|
The complete source of the following example plugin can be found here: [example-plugins/google-auth-plugin](https://github.com/vendurehq/examples/tree/publish/examples/shop-google-auth)
|
|
11
7
|
:::
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
title: "Multi-vendor Marketplaces"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# Multi-vendor Marketplaces
|
|
6
|
-
|
|
7
5
|
Vendure v2.0 introduced a number of changes and new APIs to enable developers to build multi-vendor marketplace apps.
|
|
8
6
|
|
|
9
7
|
This is a type of application in which multiple sellers are able to list products, and then customers can create orders containing products from one or more of these sellers. Well-known examples include Amazon, Ebay, Etsy and Airbnb.
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
title: "Paginated lists"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
|
|
8
5
|
Vendure's list queries follow a set pattern which allows for pagination, filtering & sorting. This guide will demonstrate how
|
|
9
6
|
to implement your own paginated list queries.
|
|
10
7
|
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
title: "Publishing a Plugin"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
|
|
8
5
|
Vendure's [plugin-based architecture](/guides/developer-guide/plugins/) means you'll be writing a lot of plugins.
|
|
9
6
|
Some of those plugins may be useful to others, and you may want to share them with the community.
|
|
10
7
|
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
title: "Integrating S3-Compatible Asset Storage"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import Tabs from '@theme/Tabs';
|
|
7
|
-
import TabItem from '@theme/TabItem';
|
|
8
|
-
|
|
9
5
|
This guide demonstrates how to integrate S3-compatible asset storage into your Vendure application using multiple cloud storage platforms. You'll learn to configure a single, platform-agnostic storage solution that works seamlessly with AWS S3, DigitalOcean Spaces, MinIO, CloudFlare R2, and Supabase Storage.
|
|
10
6
|
|
|
11
7
|
## Working Example Repository
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
title: "Managing the Active Order"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Stackblitz from '@site/src/components/Stackblitz';
|
|
6
|
-
|
|
7
5
|
The "active order" is what is also known as the "cart" - it is the order that is currently being worked on by the customer.
|
|
8
6
|
|
|
9
7
|
An order remains active until it is completed, and during this time it can be modified by the customer in various ways:
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
title: "Checkout Flow"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
|
|
8
5
|
Once the customer has added the desired products to the active order, it's time to check out.
|
|
9
6
|
|
|
10
7
|
This guide assumes that you are using the [default OrderProcess](/guides/core-concepts/orders/#the-order-process), so
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
title: Connect to the API
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
import Stackblitz from '@site/src/components/Stackblitz';
|
|
8
|
-
|
|
9
5
|
The first thing you'll need to do is to connect your storefront app to the **Shop API**. The Shop API is a GraphQL API
|
|
10
6
|
that provides access to the products, collections, customer data, and exposes mutations that allow you to add items to
|
|
11
7
|
the cart, checkout, manage customer accounts, and more.
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
title: "Navigation Menu"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
import Stackblitz from '@site/src/components/Stackblitz';
|
|
8
|
-
|
|
9
5
|
A navigation menu allows your customers to navigate your store and find the products they are looking for.
|
|
10
6
|
|
|
11
7
|
Typically, navigation is based on a hierarchy of [collections](/guides/core-concepts/collections/). We can get the top-level
|
|
@@ -3,8 +3,6 @@ title: "Order Workflow"
|
|
|
3
3
|
showtoc: true
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Order Workflow
|
|
7
|
-
|
|
8
6
|
An Order is a collection of one or more ProductVariants which can be purchased by a Customer. Orders are represented internally by the [Order entity](/reference/typescript-api/entities/order/) and in the GraphQL API by the [Order type](/reference/graphql-api/admin/enums/#ordertype).
|
|
9
7
|
|
|
10
8
|
## Order State
|
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
title: "Product Detail Page"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
import Tabs from '@theme/Tabs';
|
|
6
|
-
import TabItem from '@theme/TabItem';
|
|
7
|
-
import Stackblitz from '@site/src/components/Stackblitz';
|
|
8
|
-
|
|
9
5
|
The product detail page (often abbreviated to PDP) is the page that shows the details of a product and allows the user to add it to their cart.
|
|
10
6
|
|
|
11
7
|
Typically, the PDP should include:
|
|
@@ -15,7 +15,7 @@ See their [getting started guide](https://aws.amazon.com/s3/getting-started/) fo
|
|
|
15
15
|
|
|
16
16
|
Before using this strategy, make sure you have the `@aws-sdk/client-s3` and `@aws-sdk/lib-storage` package installed:
|
|
17
17
|
|
|
18
|
-
```
|
|
18
|
+
```bash
|
|
19
19
|
npm install @aws-sdk/client-s3 @aws-sdk/lib-storage
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -151,7 +151,7 @@ Returns a configured instance of the <a href='/reference/core-plugins/asset-serv
|
|
|
151
151
|
|
|
152
152
|
Before using this strategy, make sure you have the `@aws-sdk/client-s3` and `@aws-sdk/lib-storage` package installed:
|
|
153
153
|
|
|
154
|
-
```
|
|
154
|
+
```bash
|
|
155
155
|
npm install @aws-sdk/client-s3 @aws-sdk/lib-storage
|
|
156
156
|
```
|
|
157
157
|
|
|
@@ -53,7 +53,7 @@ be required to resolve that query.
|
|
|
53
53
|
The goal of this setting is to prevent attacks in which a malicious actor crafts a very complex query in order to overwhelm your
|
|
54
54
|
server resources. Here's an example of a request which would likely overwhelm a Vendure server:
|
|
55
55
|
|
|
56
|
-
```
|
|
56
|
+
```graphql
|
|
57
57
|
query EvilQuery {
|
|
58
58
|
products {
|
|
59
59
|
items {
|
|
@@ -119,7 +119,7 @@ const config: VendureConfig = {
|
|
|
119
119
|
|
|
120
120
|
With logging configured as above, the following query:
|
|
121
121
|
|
|
122
|
-
```
|
|
122
|
+
```graphql
|
|
123
123
|
query ProductList {
|
|
124
124
|
products(options: { take: 5 }) {
|
|
125
125
|
items {
|
|
@@ -134,7 +134,7 @@ query ProductList {
|
|
|
134
134
|
```
|
|
135
135
|
will log the following breakdown:
|
|
136
136
|
|
|
137
|
-
```
|
|
137
|
+
```bash
|
|
138
138
|
debug 16/12/22, 14:12 - [HardenPlugin] Calculating complexity of [ProductList]
|
|
139
139
|
debug 16/12/22, 14:12 - [HardenPlugin] Product.id: ID! childComplexity: 0, score: 1
|
|
140
140
|
debug 16/12/22, 14:12 - [HardenPlugin] Product.name: String! childComplexity: 0, score: 1
|
|
@@ -30,7 +30,7 @@ in processing jobs.
|
|
|
30
30
|
|
|
31
31
|
Note: To use this plugin, you need to manually install the `bullmq` package:
|
|
32
32
|
|
|
33
|
-
```
|
|
33
|
+
```bash
|
|
34
34
|
npm install bullmq@^5.4.2
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -60,7 +60,7 @@ To develop with this plugin, you'll need an instance of Redis to connect to. Her
|
|
|
60
60
|
that will set up [Redis](https://redis.io/) as well as [Redis Commander](https://github.com/joeferner/redis-commander),
|
|
61
61
|
which is a web-based UI for interacting with Redis:
|
|
62
62
|
|
|
63
|
-
```
|
|
63
|
+
```yaml
|
|
64
64
|
version: "3"
|
|
65
65
|
services:
|
|
66
66
|
redis:
|