Expand my Community achievements bar.

SOLVED

Retrieve ACS Commons Generic List via AEM GraphQL API

Avatar

Level 1

Hi Team,

 

  1. Has anyone tried or is it possible to retrieve ACS commons Generic List via AEM Graph QL API? 
  2. AEM ACS commons generic list was part of content fragment data type however it's deprecated in latest version 6.5.19, has anyone tried creating generic list and refer it as part of Enumeration data type in Content Fragment? 
  3. Also if we define content fragment model just with key/value pair for Label Key & Title similar to ACS commons generic list and if there are 100+ labels it would be very difficult for DEV to traverse through 100 labels and find out the right one to use , in the headless world do we have a solution to get just one label or set of labels as part of custom AEM Graph QL query ? Is this even possible? 

 

Any information or kind inputs much appreciated, please feel free to drop any references available for the same so we can try out those approaches to see if it fits our need.

 

Thank you!!

Rajul 

 

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@rj143_123  AEM GraphQL API does not directly support retrieving ACS Commons Generic Lists. The AEM GraphQL API is primarily designed to interact with AEM's Commerce capabilities and it's not directly integrated with ACS Commons.

 

you can create a custom GraphQL schema and resolver to fetch data from ACS Commons Generic Lists. This would involve:

  1. Defining a new type in your GraphQL schema that represents the data structure of your Generic List items.
  2. Implementing a resolver that fetches the data from the Generic List and maps it to your new GraphQL type.

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@rj143_123  AEM GraphQL API does not directly support retrieving ACS Commons Generic Lists. The AEM GraphQL API is primarily designed to interact with AEM's Commerce capabilities and it's not directly integrated with ACS Commons.

 

you can create a custom GraphQL schema and resolver to fetch data from ACS Commons Generic Lists. This would involve:

  1. Defining a new type in your GraphQL schema that represents the data structure of your Generic List items.
  2. Implementing a resolver that fetches the data from the Generic List and maps it to your new GraphQL type.