Checking post purchase app in use - field doesn't exist error

liamhey
Tourist
8 0 3

Hi there,

 

I am trying to check if my Post purchase app extension is in use by using the followign Graphql query - 

    app_in_use_query = client.parse <<-'GRAPHQL'
      {
        app  {
            isPostPurchaseAppInUse
        }
      }
    GRAPHQL

 

However in response I get the error message - Field 'isPostPurchaseAppInUse' doesn't exist on type 'App'.

This query is documented in the Shopify docs here - https://shopify.dev/apps/checkout/post-purchase/ux-guidelines-post-purchase-offers#post-purchase-app...

Does anyone know how to correctly run this query or have I found a bug in the Shopify API?

 

Appreciate it.

 

Cheers

Liam

 

Reply 1 (1)
Jcoj613
Tourist
5 1 1

I am getting this message as well and am using 2010 API version. It works in Graphiql when testing in Shopify.