Vendors and GQL? Anything other than name available?

Highlighted
Tourist
12 0 3

Hey there

 

I have a simple query to extract all vendors, it looks like this:

{
  shop {
    productVendors(first: 200) {
        pageInfo {
      hasNextPage
      hasPreviousPage
    }
      edges {
        node 
      }
    }
  }
}

I am wondering, is there any more to a vendor?  Like some sort of identifier?  It looks like vendors are a text collection attached to each product, is this correct?  I am trying to sync this with another system that has a proper vendor table with a unique identifier.  Thanks

0 Likes
Highlighted
Tourist
12 0 3

so I will update this quiet thread ;)

 

It looks like there is nothing more to vendors than a name.  

It seems not possible due to a bug to get more than 250 vendors back.  The cursor mechanism seems to be not working for product vendor.  If I set it for 100 to be retrieved, there is no cursor control (after doesn't work on product vendors) and the pageInfo is always false even when there are more pages.

 

  I had to abandon this, and read the vendor from each product, aggregate it.  This is tough with 11K items that net settle to 190 vendors.

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 163

Hey @dma550

 

Thanks for reporting. Flagging this internally.

0 Likes