Expand my Community achievements bar.

Missing Image Metadata in GraphQL Queries After Moving from AEMaaCS to AMS (6.5 SP 21)

Avatar

Level 1

Hi there!

I'm facing an issue after migrating from AEM as a Cloud Service (AEMaaCS) to AEM Managed Services (AMS, 6.5 SP 21). Some image metadata (title, description) previously available in the ImageRef, MultimediaRef, and DocumentRef schemas are no longer accessible in GraphQL queries, even though the metadata still exists in the image properties.

Context:

We have several Content Fragments with Content Reference attributes that point to images stored in the DAM. These fragments are exposed via GraphQL. In AEM GraphQL, Content Reference attributes are represented by the ImageRef type, which allows access to image data such as publish_url, title, and description.

However, after migrating to AMS, some attributes from ImageRef, MultimediaRef, and DocumentRef are no longer available, which are critical for our use case.

Investigation so far:

  • We suspect this could be related to GraphQL version differences, as we have noticed different GraphQL versions in AEMaaCS and AMS.
  • We attempted to install the GraphQL package from AEMaaCS in AMS, but they are not compatible.
  • We explored overlaying or extending the ImageRef model but haven’t found a way to do so.

Request for help:

We would appreciate any guidance on how to:

  1. Retrieve the missing metadata fields in GraphQL queries.
  2. Override or extend the GraphQL models (ImageRef, MultimediaRef, DocumentRef) in AMS to include the missing attributes.

I’m attaching some details that might be helpful. Thank you in advance for your support!


Content fragment model:
Screenshot 2025-02-09 at 1.53.46 PM.png

 

Graphql query:

query ($locale: String!) {
  heroBannerList(_locale: $locale) {
    items {
      _path
      heroTitle
      heroSubtitle
      image {
          ... on ImageRef {
            _publishUrl
            title
            description
          }
        }
    }
  }
}

Error:

Screenshot 2025-02-09 at 2.09.31 PM.png

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Administrator

@daniel-strmecki @TarunKumar @Raja_Reddy @Himanshu_Jain @ManviSharma @Asutosh_Jena_ @HeenaMadan @touseefk2181136 @partyush If you have a moment, please review this question and see if you can help. Thanks in advance!



Kautuk Sahni