Tag: graphql

Migrating GraphQL Queries from Sitecore XP to XM Cloud: Key Differences and Best Practices

As Sitecore transitions from the traditional XP platform to the modern XM Cloud architecture, developers will notice significant differences in how GraphQL queries are structured and executed. When migrating component queries from XP to XM Cloud, it’s essential to adjust your approach to ensure compatibility. This is primarily because XM Cloud relies on Sitecore Search-based … Continue reading Migrating GraphQL Queries from Sitecore XP to XM Cloud: Key Differences and Best Practices

Extending Sitecore Search API Crawlers for Multi-Language Support

Creating a Sitecore Search API Crawler for Multi-Locale Content Today, I’ll walk through how I created a Sitecore Search API crawler designed to handle multi-locale content, along with a request extractor to dynamically handle locales. The example in the Sitecore Search documentation is great for setting up an API crawler with a trigger, request extractor, … Continue reading Extending Sitecore Search API Crawlers for Multi-Language Support

Debugging GraphQL Errors After Migrating Sitecore Templates from Sitecore 9.1 to XM Cloud

Today, I’d like to share an error I encountered while migrating Sitecore XP 9.1 templates to Sitecore XM Cloud (XMC). After successfully migrating the templates, I attempted to run the Layout Service using GraphQL IDE, but encountered the following error: { "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON" } At first glance, … Continue reading Debugging GraphQL Errors After Migrating Sitecore Templates from Sitecore 9.1 to XM Cloud

Sitecore Search API Crawler EXEC_SYNTAX_ERROR

Hi,Today I will discuss about an issue I faced where the formatting of GraphQL query was causing problems when using the Edge endpoint of Sitecore XM Cloud, even though it worked fine on the Preview endpoint.I have configured an API Crawler with request trigger to fetch data from Sitecore using GraphQL query. Below is the … Continue reading Sitecore Search API Crawler EXEC_SYNTAX_ERROR