SubscriptionContract query gives wrong linecount

SubscriptionContract query gives wrong linecount

anil-hulkapps
Shopify Partner
1 0 0

For one of my subscription (contract id - gid://shopify/SubscriptionContract/1864925340 )

 

{
subscriptionContract(id: \"gid://shopify/SubscriptionContract/$id\") {
id
lineCount
}
}

 This query gives linecount = 1

But there are actually 2 line items in this subscription contract. Please look into it

Reply 1 (1)

ya_shopify
Shopify Staff
14 4 5

Hello Anil-Hulkapps,

The GraphQL query seems to be returning the correct information from our end ("lineCount": 2) for the contract specified. Could you double check that you are executing a new query and the response you're examining is not cached?

Thanks!

To learn more visit the Shopify Help Center or the Community Blog.