Expand my Community achievements bar.

SOLVED

Extend AEM GraphQL with renditions and Dynamic Media URL

Avatar

Level 2

As you can see here;

https://jmp.sh/nXDSEM5

I query an Image from a CF.

 

Anyone has an idea how one could extend that so I can get all image renditions and/or dynamic media URLs for that image?


Best

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

GraphQL now supports "Dynamic Media URLs". Example:

{
  "data": {
    "adventureByPath": {
      "item": {
        "_path": "/content/dam/wknd-shared/en/adventures/bali-surf-camp/bali-surf-camp",
        "title": "Bali Surf Camp",
        "primaryImage": {
          "_dynamicUrl": "/adobe/dynamicmedia/deliver/dm-aid--a38886f7-4537-4791-aa20-3f6ef0ac3fcd/adobestock_175749320.jpg?preferwebp=true&width=1000&quality=80"
        }
      }
    }
  }
}
 

 

For more details, please refer to:


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

GraphQL now supports "Dynamic Media URLs". Example:

{
  "data": {
    "adventureByPath": {
      "item": {
        "_path": "/content/dam/wknd-shared/en/adventures/bali-surf-camp/bali-surf-camp",
        "title": "Bali Surf Camp",
        "primaryImage": {
          "_dynamicUrl": "/adobe/dynamicmedia/deliver/dm-aid--a38886f7-4537-4791-aa20-3f6ef0ac3fcd/adobestock_175749320.jpg?preferwebp=true&width=1000&quality=80"
        }
      }
    }
  }
}
 

 

For more details, please refer to:


Aanchal Sikka