Graphql Metaobject filtering by updated_at

Topic summary

  • Issue: Filtering metaobject entries by updated_at in a GraphQL query returned the same results regardless of the date, including entries newer than the specified timestamp.

  • Context: Query against type “product_family” with query: “updated_at:>=2024-06-10T012:25:22Z” and first: 100. A screenshot was shared showing update timestamps for the entries.

  • Key detail: The query string filter targets the updated_at field using an ISO 8601 timestamp.

  • Resolution: The date must be wrapped in single quotes within the query string. Correct form: query: “updated_at:>=‘2024-06-10T012:25:22Z’”.

  • Outcome: After quoting the date, the filter worked as expected; the original poster confirmed the fix.

  • Status: Resolved; no further actions or open questions.

Summarized with AI on December 27. AI used: gpt-5.

Hello everyone,

I am new to the Graphql world and need help with a query.
I would like to display the entries of a metaobject from a certain updated_at time, unfortunately I always get the same ones despite the filter query, no matter which date I enter.
My query looks like this:
query MyQuery {
metaobjects(
type: “product_family”
query: “updated_at:>=2024-06-10T012:25:22Z”
first: 100
) {
nodes {
displayName
fields {
key
value
}
referencedBy(first: 10) {
nodes {
name
key
referencer {
… on Product {
id
}
}
}
}
}
}
}
Unfortunately, I also get entries within the metaobject that are younger than the specified time.
The following screenshot shows the timestamp of the update of the meta object entries

I hope I was able to explain what I need :slightly_smiling_face:

I got the answer myself you have to have the single ’ on both sides if the date so ‘2024-06-10T012:25:22Z’