Solved

Filter by updated_at

  • 13 October 2022
  • 2 replies
  • 114 views

Badge

Hello everyone,

I am trying to query all contentpage items from our repository that have been updated after a certain point of time, unfortunately that does not work out. To reproduce my issue, I have reduced my query as much as possible.

I used this query to demonstrate that we do have content in our system that satisfies the query

query MyQuery {
all_contentpage {
items {
system {
created_at
updated_at
publish_details {
time
}
uid
}
}
}
}

As you can see, this delivers several results.

When I now add a constraint to only get those items that have been updated after a certain point of time,

query MyQuery {
all_contentpage(where: {updated_at_gte: "2022-10-11T06:00:00.103Z"}) {
items {
system {
created_at
updated_at
publish_details {
time
}
uid
}
}
}
}

I no longer do get results.

As you can see in the first result-set, there are several records that have been updated after October 11th, but I do not get results.

icon

Best answer by Alison Mancinelli 13 October 2022, 18:55

View original

2 replies

Userlevel 5

Hi - this looks specific to your account, the support team will be reaching out with a case number. Thank you for reaching out! 

Alison, Contentstack Community Manager 

Badge

Should anyone else stumble over this issue, I got the confirmation that this is a bug, which will be solved in future. Our case number is #00022217.

Reply