magemontreal/stock-qty-graph-ql

There is no license information available for the latest version (1.0.0) of this package.

N/A

1.0.0 2021-09-29 13:56 UTC

This package is auto-updated.

Last update: 2024-05-08 03:37:15 UTC


README

composer require magemontreal/stock-qty-graph-ql

Main Functionalities

Added stock_qty to product GraphQl

image

Example:

{
  products(search: "Black", pageSize: 5) {
    total_count
    items {
      name,
      stock_qty,
      sku
    }
    page_info {
      page_size
      current_page
    }
  }
}

Installation

Run: composer require magemontreal/stock-qty-graph-ql and run bin/magento se:up

Type 1: Zip file

  • Unzip the zip file in app/code/MageMontreal/StockQtyGraphQl
  • Enable the module by running php bin/magento module:enable MageMontreal_StockQtyGraphQl
  • Apply database updates by running php bin/magento setup:upgrade
  • Flush the cache by running php bin/magento cache:flush

Type 2: Composer

  • Install the module composer by running composer require magemontreal/stock-qty-graph-ql
  • enable the module by running php bin/magento module:enable MageMontreal_StockQtyGraphQl
  • apply database updates by running php bin/magento setup:upgrade
  • Flush the cache by running php bin/magento cache:flush