GraphQL API search customers by certain email pattern does not work

GraphQL API search customers by certain email pattern does not work

ArchitecTJ37
Shopify Partner
3 0 3

Just found that searching customer with `query: "email:jos*"` does not work.

 

I added a few customers to my store:

jos1@gmail.com

jos2@gmail.com

john1@gmail.com

john2@gmail.com

joe1@gmail.com

joe2@gmail.com

 

`query: "email:joh*"` and `query: "email:joe*"` can correctly return the matched customers, but the following just does not work.

 

 

{
  customers(first: 2, query: "email:jos*") {
    nodes {
      id
      email
      state
    }
  }
}

 

 

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 508

Hi ArchitecTJ37,

 

Thanks for your post. When testing with versions 2022-07 and 2022-10 of the Admin API that example query is returning expected results in a test store, so if you're still having trouble with it please reach out [to Partner Support using the email option] and select the 'App Development & API' topic to enable a more direct investigation into the store that's happening on.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog