Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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.