Admin GraphQL query filter not working

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?

I have the same problem but it is with draftOrders [email removed]

https://community.shopify.com/c/Shopify-APIs-SDKs/draftOrders-first-10-query-quot-email-bob-slydell-example-com/m-p/891558

This is really frustrated though

Hey @Tolulope_Akinol

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

@Kevin_A Thanks for the clarification but the screenshot is directly from the Shopify documentation so I would recommend updating it to remove the wrong field reference

Hey @Tolulope_Akinol

Thanks for the heads up on that! I will look into getting that corrected.

Hey @ Kevin_A

How can I filter product not have specific product_type (like the way NOT tag or -tag, NOT vendor or -vendor)