[Storefront API] Moving Shop fields to the QueryRoot

Ryan
Shopify Staff
492 42 113

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

Ryan | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Reply 1 (1)
PaulNewton
Shopify Partner
3351 215 642
  • 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 and ? Like the solution so you can help others.
Buy me a coffee ☕ paypal.me/paulnewton or donate to eff.org
Confused? Busy? Buy a custom solution paull.newton+shopifyforum@gmail.com