Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
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.