Retrieve ACS Commons Generic List via AEM GraphQL API | Community
Skip to main content
New Member
April 25, 2024
Solved

Retrieve ACS Commons Generic List via AEM GraphQL API

  • April 25, 2024
  • 1 reply
  • 721 views

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 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jagadeesh_Prakash

@rajulpr  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.

 

 

1 reply

Jagadeesh_Prakash
Community Advisor
Jagadeesh_PrakashCommunity AdvisorAccepted solution
Community Advisor
April 26, 2024

@rajulpr  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.