d
Topic
Posts:
1
11 days ago

Graphql API is working on admin panel but not on postman for "productVariants "

{
  productVariants(first:100, query: "inventory_quantity:2") {
    edges {
      node {
        inventoryQuantity
        title
      }
    }
  }
}

Above is the query I am trying to post. I am getting response on admin portal but not on postman getting Error "Field 'productVariants' doesn't exist on type 'QueryRoot'"

Even tried with REST API for variants its the same case with REST as well, able to get response on admin but not on postman.

Requirement is to get the variants inventory details as per the ID's or name(multiple id). Appreciate if any one has any other API which solves the purpose.