GraphQL
The GraphQL package provides read queries for lists, products and assignments.
composer require mageb2b/pricesystem-pricelist-graph-ql:*
php bin/magento setup:upgrade
php bin/magento cache:flush
| Single record | Paginated list |
|---|---|
pricelist(id) |
pricelists(filter, pageSize, currentPage) |
pricelistProduct(id) |
pricelistProducts(filter, pageSize, currentPage) |
pricelistCustomer(id) |
pricelistCustomers(filter, pageSize, currentPage) |
pricelistGroup(id) |
pricelistGroups(filter, pageSize, currentPage) |
Filters use standard GraphQL filter inputs for fields such as list ID, product ID, customer ID, group ID and active state. Paginate list queries and request only the fields needed by the client.
These queries expose stored Price List records. For calculated storefront prices, use the shared Pricesystem GraphQL package.