OOTB API to fetch Referenced Content Fragment JSON along with Parent CF JSON other than GraphQL | Community
Skip to main content
Bhuwan_B
Community Advisor
Community Advisor
March 17, 2023
Solved

OOTB API to fetch Referenced Content Fragment JSON along with Parent CF JSON other than GraphQL

  • March 17, 2023
  • 1 reply
  • 637 views

Is there a way to fetch Referenced Content Fragment along with Parent CF JSON? 

Note: Asset API shows referenced CF URL but not Json. We have CFM nested in one level folder (Ex: /conf/xyz), hence GraphQL doesn't seem to be working and is not suitable for the use case.

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 Shubham_borole

Hi @bhuwan_b , just to clarify, is Graphql query not working for a query to a content fragment that has a property that references to another content fragment? 

 

query { contentFragmentByPath(path: "/content/my-site/my-folder/my-content-fragment") { ... on ContentFragment { title0 description0 otherContentFragment{ ... on ContentFragment { title1 desc1 image1{ url altText } } } } } }

Above query type has been tried or its not applicable to current question?

1 reply

Shubham_borole
Community Advisor
Shubham_boroleCommunity AdvisorAccepted solution
Community Advisor
June 4, 2023

Hi @bhuwan_b , just to clarify, is Graphql query not working for a query to a content fragment that has a property that references to another content fragment? 

 

query { contentFragmentByPath(path: "/content/my-site/my-folder/my-content-fragment") { ... on ContentFragment { title0 description0 otherContentFragment{ ... on ContentFragment { title1 desc1 image1{ url altText } } } } } }

Above query type has been tried or its not applicable to current question?