How to Get Upsell Product GraphQL Query Magento 2?

Upsell Product GraphQl query in Magento 2 to retrieve all the upsell items from the given product.

If any product has assigned upsell products from the admin panel and wants to fetch all the upsell items using the GraphQL query, the given post is useful for you.

Detail Description of Product Query GraphQL Magento Check this article first to get a clear idea of Product Query.

Upsell Product GraphQL Query Payload,

upsell_products{} field used to retrieve all the upsell items of the given product.

Output:

Upsell Product GraphQL output will be all the assigned items from the product.

You can also interested to read GraphQL Query,

  1. How to Get Related Product GraphQL Query Magento 2?
  2. How to Get Cross Sell Product GraphQL Query Magento 2?