magento / graphql-ce

[ARCHIVED] Please use magento/magento2 project
https://github.com/magento/magento2
Open Software License 3.0
131 stars 155 forks source link

The Comment field is named "description" in the GraphQL query. #1062

Closed chalov-anton closed 5 years ago

chalov-anton commented 5 years ago

Preconditions (*)

  1. Create a Customer
  2. Create a Simple Product with any Description prod_descr

Steps to reproduce (*)

  1. Open Storefront and login with a Customer
  2. Add the previously created Simple Product to the Wishlist
  3. Open My Wish List and add a Comment to previously added Simple Product, Update Wish List comment
  4. Open GraphQL Playground, and perform a query for the previously created Customer
    query {
    customer {
    wishlist {
      items {
        description
        product {
          name
          description {
            html
          }
        }
      }
    }
    }
    }
  5. Observe the query "answer" description2

Expected result (*)

  1. The items description is actually a Comment field added from Storefront, it can be misleading. Please change the name description under customer - wishlist - items query to comment comment

    Actual result (*)

  2. The Comment field is named description in the GraphQL query.