For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
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
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.