Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

GraphQL query list order by latest modified date

Avatar

Level 1

Hi All,

 

We're using GraphQL query list from Content Fragments and we need to order list by latest modified.

but we can't get the latest modified data from a Model, any solution can achieve this?

 

Thanks

Tiger

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @huy39382677 ,

According to the documentation:

to retrieve date values from metadata you can use calendarMetadata or calendarArrayMetadata, something like this:

item {
    _metadata {
        calendarMetadata {
          name,
          value
        }
        calendarArrayMetadata {
          name,
          value
        }
    }
}

If at any reason this will not work for you, I would recommend to raise support ticket to Adobe.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @huy39382677 ,

According to the documentation:

to retrieve date values from metadata you can use calendarMetadata or calendarArrayMetadata, something like this:

item {
    _metadata {
        calendarMetadata {
          name,
          value
        }
        calendarArrayMetadata {
          name,
          value
        }
    }
}

If at any reason this will not work for you, I would recommend to raise support ticket to Adobe.