Expand my Community achievements bar.

SOLVED

Is it possible to get tagList in AEM using GraphQL API?

Avatar

Level 5

I want to fetch all the available tags under a given folder. Is it possible to perform the same using GQL API or would I need QueryBuilder or Assets API for the same?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I don't think we can use GQL to fetch the tags like we use QueryBuilder API. I think AEM GQL API is very specific to query the content fragments by its schema. May be Adobe guys can chime in and confirm. Sorry for the confusion!

Some insight here : https://www.albinsblog.com/2022/04/aem-adobe-experience-manager-content-sharing-approaches.html#.YzL... 

View solution in original post

3 Replies

Avatar

Community Advisor

You can write simple query using querybuilder API and read all the tags under a specific path. 

 

path=<path of the folder>

p.limit=-1

type=cq:tag

 

 

 

Avatar

Level 5

thank you very much @Saravanan_Dharmaraj I know we can do it via queryBuilder however I was checking for the possibility of querying the same using GQL. Thanks

Avatar

Correct answer by
Community Advisor

I don't think we can use GQL to fetch the tags like we use QueryBuilder API. I think AEM GQL API is very specific to query the content fragments by its schema. May be Adobe guys can chime in and confirm. Sorry for the confusion!

Some insight here : https://www.albinsblog.com/2022/04/aem-adobe-experience-manager-content-sharing-approaches.html#.YzL...