내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

How can I get the name of the tag (jcr:title) from GraphQL in the Content Fragment Model?

Avatar

Level 2

When I use the DataType of Tags in the Content Fragment Model and reference it from GraphQL, it returns the tag path (e.g. my-sites:tag-layer1/tag-layer2).
How can I get the name of the tag (jcr:title) from GraphQL in addition to the tag path?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

I don't think you can get the title of tag in Graph QL since the iD of the tags are stored in array. You are just querying the schema values in Graph QL.

Query Builder API has the flexibility to read the same IDs and use the tagManager API to get the tag and read its title.

 

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

I don't think you can get the title of tag in Graph QL since the iD of the tags are stored in array. You are just querying the schema values in Graph QL.

Query Builder API has the flexibility to read the same IDs and use the tagManager API to get the tag and read its title.

 

Avatar

Level 2

I understand that I cannot get the title of the Tag in GraphQL.

It seems that the Query Builder API can do it, but I wanted to develop it on the front end, not on the back end.

I will consider other methods including the Query Builder API, thank you.