What are the available GraphQL queries for Product Labels?

What are the available GraphQL queries for Product Labels?

The Product Labels extension is read compatible with GraphQL out of the box. To install the corresponding package, please execute the following Composer command: 

composer require amasty/product-labels-graphql

Once the package is installed, the latest information on the available queries can be derived from the dedicated schema.graphql file located in the GraphQL Labels package via one of the below paths.

⇾ if the module was uploaded manually:

app/code/Amasty/LabelGraphQl/etc/schema.graphql
      
⇾ if the module was installed via Composer:

vendor/amasty/product-labels-graphql/etc/schema.graphql

Furthermore, we have also released a PWA add-on for the Product Labels extension to provide full compatibility with a PWA theme. 
      • Related Articles

      • Product Labels | GraphQL methods

        Queries amLabelSetting description: get information about Product Labels module settings amLabelProvider (productIds: [Int], mode: AmLabelMode) description: get information about labels by product ID
      • What Amasty extensions support GraphQL?

        Amasty has introduced additional GraphQL packages for extensions that are GraphQL compatible. These packages are listed in the 'suggest' section of the composer.json file. As a result, they are not automatically installed with the main module. To ...
      • Multiple Coupons | GraphQL methods

        Kindly note that the GraphQL functionality for Multiple Coupons is available as a part of an active product subscription or support subscription. Query amGetCouponsByCartId description: get coupons by cart id Mutations amApplyCouponsToCart ...
      • I don't see some attributes in the conditions list of labels rules. How can I add them?

        Some attributes might not be available in the conditions list when you create a new label. To add an attribute to the labels conditions follow the steps below. Step 1. Navigate to Stores → Attributes → Product, choose the attribute and open the ...
      • Product Attachments | GraphQL methods

        Queries getAmProductAttachmentSettings description: get Product Attachment module settings getAmFiles (ids: [Int]) description: get info about uploaded files