Inconsistent GraphQL Query Results on Shopify Admin vs. API Call

Hello,

I’m encountering an issue where the results of a GraphQL query differ depending on whether I run it via the Shopify GraphiQL App in the admin console or directly through my store’s API endpoint.

Query:

> {> >     products(first:10, query:"vendor:ADIDAS") {> >         nodes {> >             id> >             handle> >             title> >         }> >     }> > }> > > Expected Result: There are 8 ADIDAS products. When running the query in the Shopify GraphiQL App, I receive all 8 products as expected:> > > {> "data": {> "products": {> "nodes": [> {> ...,> "title": "ADIDAS | SUPERSTAR 80S"> },> {> ...,> "title": "ADIDAS | KID'S STAN SMITH A"> },> {> ...,> "title": "ADIDAS | CLASSIC BACKPACK"> },> {> ...,> "title": "ADIDAS | CLASSIC BACKPACK | LEGEND INK MULTICOLOUR"> },> {> ...,> "title": "ADIDAS | SUPERSTAR 80S"> },> {> ...,> "title": "ADIDAS | KID'S STAN SMITH"> },> {> ...,> "title": "ADIDAS | CLASSIC BACKPACK"> },> {> ...,> "title": "ADIDAS | CLASSIC BACKPACK | LEGEND INK MULTICOLOUR"> }> ]> }> }> }> > > Actual Result via API Call: However, when I make a POST request to https://{shop_name}.myshopify.com/api/graphql, I only retrieve 4 products:> > > {> >     "data": {> >         "products": {> >             "nodes": [> >                 {> >                     ...> >                     "title": "ADIDAS | SUPERSTAR 80S"> >                 },> >                 {> >                     ...> >                     "title": "ADIDAS | KID'S STAN SMITH A"> >                 },> >                 {> >                     ...> >                     "title": "ADIDAS | CLASSIC BACKPACK"> >                 },> >                 {> >                     ...> >                     "title": "ADIDAS | CLASSIC BACKPACK | LEGEND INK MULTICOLOUR"> >                 }> >             ]> >         }> >     }> > }>

Questions:

  1. Why are the results different between the GraphiQL App and API Call?
  2. How can I resolve this issue?

Thank you.