Posts

Showing posts from July, 2023

XM Cloud - All about XM Preview and Edge GraphQL

Image
 I have recently started working on the xmcloud project to fetch the data from xmcloud using GraphQL, I have faced some challenges using GraphQL in both the XM preview and EDGE environment. I am sharing details that will help others who like to use GraphQL extensively for querying and searching content from xmcloud. Challenges : Need to access the item from the data folder which is not under the home node. I have written the GraphQL Item query to fetch the datasource item under the data folder. The response is fine in the XM preview environment with all the data from different fields like image,droplink,droptree,treelist, and treelistex, etc coming properly,  but when switched to EDGE the query does not work as expected, it provides the response in raw values. The reason behind showing raw value is that the items under the data folder do not have any site definition to them and it does have a presentation. If anyone faced this issue, then you will be happy now with the latest release o