FROM CACHE - de_header

Graphql Metaobject filtering by updated_at

Gelöst

Graphql Metaobject filtering by updated_at

ecomaze_GmbH
Shopify Partner
14 1 0

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

ecomaze_GmbH_0-1718179506711.png

I hope I was able to explain what I need 🙂



1 AKZEPTIERTE LÖSUNG

ecomaze_GmbH
Shopify Partner
14 1 0

Erfolg.

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

Lösung in ursprünglichem Beitrag anzeigen

1 ANTWORT 1

ecomaze_GmbH
Shopify Partner
14 1 0

Erfolg.

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