FROM CACHE - de_header
Diese Community hat auf Peer-to-Peer-Support umgestellt. Der Shopify Support wird diese Community nicht mehr betreuen. Wir empfehlen dir, dich mit anderen Händler:innen und Partner:innen in Verbindung zu setzen, um Unterstützung zu erhalten und Erfahrungen auszutauschen. Bitte melde weiterhin alles, was gegen unseren Verhaltenskodex verstößt, oder Inhalte, die deiner Meinung nach entfernt werden sollten.
Die Community zieht um! Ab 7. Juli ist die aktuelle Community für ca. Zwei Wochen schreibgeschützt. Du kannst die Inhalte durchsuchen, aber es können vorübergehend keine Beiträge verfasst werden. Mehr Informationen.

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'