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

GraphQL API : Get Image details like title and description

Avatar

Level 5

I am using AEM GQL API and want to fetch the image document's metadata like title and description?

 

Currently my query looks like this:

spidey1405_0-1665579153780.png

I don't see any way to get article title and description. Can someone help me understand how can I fetch the same?

2 Replies

Avatar

Community Advisor

Hi @spidey1405,

Please refer this:

{
  adventureList {
    items {
      _path,
      _metadata {
        stringMetadata {
          name,
          value
        }
        stringArrayMetadata {
          name,
          value
        }
        intMetadata {
          name,
          value
        }
        intArrayMetadata {
          name,
          value
        }
        floatMetadata {
          name,
          value
        }
        floatArrayMetadata {
          name,
          value
        }
        booleanMetadata {
          name,
          value
        }
        booleanArrayMetadata {
          name,
          value
        }
        calendarMetadata {
          name,
          value
        }
        calendarArrayMetadata {
          name,
          value
        }
      }
    }
  }
}

Reference: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/headless/graphql-ap...

Hope that helps!

Regards,

Santosh

Avatar

Level 5

Hi Santosh this is only for the metadata associated with that whole content fragment and not exactly the image asset. 😞