nozzlegear / ShopifySharp

ShopifySharp is a .NET library that helps developers easily authenticate with and manage Shopify stores.
https://nozzlegear.com/shopify-development-handbook
MIT License
742 stars 308 forks source link

Retrieving Product category field #1000

Closed josephlugo closed 7 months ago

josephlugo commented 7 months ago

Could anyone please help me find how to get the field below using this library for a particular product?

image

I already got the list of Products but it seems the field I'm looking for can only be gotten using GraphQL:

ListResult listProducts = await this.prodService.ListAsync();

I know there is currently no API definition for this schema, but is there a way to add a new property to the ShopifySharp.Product class something like 'productCategory'?

Thanks.

josephlugo commented 7 months ago

Nevermind, I was able to create my own GraphQL client and solved the issue. This can be closed. Thanks!