[BUG] customers query - Invalid search field for this query

Have come across some other posts related but the solutions don’t seem applicable here.

Here’s an example query I’m trying to run:

{
  customers(
    first: 250
    query: "updated_at:>2025-09-16T16:03:57Z OR customer_date:>2025-09-16T16:03:57Z"
  ) {
    edges {
      node {
        id
        createdAt
        updatedAt
      }
    }
    pageInfo {
      startCursor
      hasPreviousPage
      hasNextPage
      endCursor
    }
  }
}

This query seems to be failing and all customers are being returned. In the response I see this:

"warnings": [
  {
    "field": "03",
    "message": "Invalid search field for this query."
  },
  {
    "field": "03",
    "message": "Invalid search field for this query."
  }
]

But both updated_at and customer_date are both valid under query, see docs below:

1 Like

Hey @Luke,

Just testing here and I can replicate what you are seeing. The fix is to quote your datetime values in the query:

query: "updated_at:>'2025-09-16T16:03:57Z' OR customer_date:>'2025-09-16T16:03:57Z'"

I’m not getting warnings when quoting. Let me know if you see the same.

Hey Kyle, will give this a try - thanks!

1 Like