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

New Member
1 0 0

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

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.