'{
“query”: “query { productVariants(query : “(title:S) AND (product_id:7253232058557”) { edges { node { id title inventoryQuantity} } } }”
}’
}
I am trying to get the variant title S of a specific product (Black Hoodie with ID :7253232058557) but it returns the error 400 saying “Bad Request”. What am I doing wrong?
when using curl, you will need to pass the query through a variable so that it can be recognized as a string literal - otherwise there are too many quotations!