Does the admin GraphQL API for *orders* support the full API search syntax?

noahtren
Shopify Partner
2 0 2

Hi,

 

It looks like the Admin GraphQL API has an extended syntax for searches including prefix and wildcard searches, which is well documented here: https://shopify.dev/docs/api/usage/search-syntax

 

I've seen this generally (exclusively?) used for querying products.

 

For our app we are querying orders and would like the same functionality. I've confirmed this query works with the full confirmation number, and also confirmed that the wildcard works for products. But it returns no results with the following request when intuitively it should. It seems to fail silently.

 

 

const confirmationNumberResponse = await shopifyGraphQL.request(`
query {
  orders(first: 5, query: "confirmation_number:'${confirmationNumber}*'") {
    edges {
      node {
        id
      }
    }
  }
}`)

 

Thank you

 

Replies 0 (0)