[Storefront API] Moving Shop fields to the QueryRoot

Shopify Staff
Shopify Staff
469 36 92

As part of our efforts to improve the quality of the Storefront API, we have moved some nested fields out of the shop object and onto the QueryRoot.

The following fields on the Shop object are being deprecated and will now return a deprecation warning:

  • collectionByHandle
  • collections
  • productByHandle
  • productTags
  • productTypes
  • products

These fields are now all queryable directly on the QueryRoot.

As always please leave and questions or comments below and we will try to answer them.

Happy Holidays!
Storefront API Team

Developer Experience @ Shopify
Shopify Partner
1663 50 174
  • productTypes

This breaks rational parity with liquids object structure "shop.types" can we expect more global objects like productType in liquid? 

Or an introduction of an alias "types" field on the shop object /shrug

Problem Solved? ✔️Accept the solution so you can help others.
Confused? Busy? ? Get me to solve it paull.newton+shopifyforum@gmail.com.
Buy me a coffee? ☕ paypal.me/paulnewton or donate to eff.org