All things Shopify and commerce
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
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025