One of the samples in the product query section of the Admin GraphQL illustrates how you can use the "query" variable to filter product nodes by productType (https://shopify.dev/docs/admin-api/graphql/reference/object/product)
However, the filter query:"productType:shirt" returns nodes with productType different than "shirt". I also tried this query in a live shop and had similar results. Is it possible to filter results with a query on productType or other fields?
Solved! Go to the solution
This is an accepted solution.
You are querying on a field that doesn't exist, hence why the results aren't as expected. If you look at the documentation for the product query root, it specifies you can query on "product_type" not "productType". See here for reference: https://shopify.dev/docs/admin-api/graphql/reference/queryroot
Thanks for the heads up on that! I will look into getting that corrected.