Skip to main content
huy39382677
New Member
May 8, 2022
Solved

GraphQL query list order by latest modified date

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

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
lukasz-m
lukasz-mAccepted solution
Community Advisor
September 15, 2022

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.

1 reply

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
September 15, 2022

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.

Translate