magemontreal / stock-qty-graph-ql
此包的最新版本(1.0.0)没有提供许可证信息。
N/A
1.0.0
2021-09-29 13:56 UTC
Requires
- magento/framework: *
This package is auto-updated.
Last update: 2024-09-08 04:21:02 UTC
README
composer require magemontreal/stock-qty-graph-ql
主要功能
将 stock_qty
添加到产品 GraphQl
示例
{
products(search: "Black", pageSize: 5) {
total_count
items {
name,
stock_qty,
sku
}
page_info {
page_size
current_page
}
}
}
安装
运行: composer require magemontreal/stock-qty-graph-ql
并运行 bin/magento se:up
类型 1: Zip 文件
- 将 zip 文件解压到
app/code/MageMontreal/StockQtyGraphQl
- 通过运行
php bin/magento module:enable MageMontreal_StockQtyGraphQl
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento cache:flush
清除缓存
类型 2: Composer
- 通过运行
composer require magemontreal/stock-qty-graph-ql
安装模块 composer - 通过运行
php bin/magento module:enable MageMontreal_StockQtyGraphQl
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento cache:flush
清除缓存