How to check if a shop supports functions?

Is there some way to access a feature flag that indicates if a Shop supports functions or not? I have checked the following in GQL:

  • shop.features

  • shop.supportsCheckoutApi

  • createAppDiscountCode (different error or something)

This would be very helpful to make sure when functions arrive we can roll them out only to the correct stores (just dev preview stores atm).

More generally it would be helpful to surface if a store is dev-preview on shop or something.

Hi @SatelQuinn – Theoretically this shouldn’t be necessary. Once functions go GA, they will be available to all shops.

Thanks for the quick reply @Nick_Wesselman ! For some reason I remembered reading somewhere that they would roll out to plus shops first. Couldn’t dig that up though.