---
title: "Sitecore Experience Edge for XM Preview GraphQL endpoint"
slug: "sitecore-experience-edge-for-xm-preview-graphql-endpoint"
abstract: "Introducing the Edge Preview GraphQL endpoint"
---
# Sitecore Experience Edge for XM Preview GraphQL endpoint

The Sitecore Experience Edge for XM Preview GraphQL endpoint is a GraphQL endpoint based on the [Sitecore GraphQL API](https://doc.sitecore.com/xp/en/developers/hd/23/sitecore-headless-development/sitecore-graphql-api.html "Sitecore GraphQL API"). The endpoint mirrors the [schema](https://doc.sitecore.com/xp/en/developers/hd/23/sitecore-headless-development/the-experience-edge-schema.html "The Experience Edge schema") and behavior of Sitecore Experience Edge for XM. It enables preview, editing, and local development without publishing to Experience Edge.

> [!note]
> The Preview GraphQL endpoint endpoint uses a tokenized search index. As a result, search behavior depends on how fields are indexed:
>
> -   The `CONTAINS` operator can return multiple results based on tokenized field values.
>
> -   The `EQ` (Equals) operator may also return multiple results for tokenized text fields, even when an exact match is expected.
>
>
> To ensure exact matching with `EQ` in the Preview endpoint, use the [SearchQueryFieldMapping feature](https://doc.sitecore.com/xp/en/developers/104/platform-administration-and-architecture/set-up-search-query-field-mapping.html) to map tokenized fields to non-tokenized computed fields. See also the related support article [KB1003665](https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1003665).
>
> For information about search operators behavior, see Search operators.

The following topics describe how to use the Preview GraphQL endpoint:

- [Configure and access the endpoint to test your queries](https://doc.sitecore.com/xp/en/developers/hd/23/sitecore-headless-development/test-your-queries.html "Test your queries").
- [Query examples](https://doc.sitecore.com/xp/en/developers/hd/23/sitecore-headless-development/query-examples-for-the-delivery-api.html "Query examples for the Delivery API").

> [!important]
> We do not support extending the mirrored schema on your Sitecore CM and CD roles. Extending the schema would break compatibility with Experience Edge. If you want custom schemas, use the [Sitecore GraphQL API](https://doc.sitecore.com/xp/en/developers/hd/23/sitecore-headless-development/sitecore-graphql-api.html "Sitecore GraphQL API").
>
> When performing search queries using the Preview endpoint, there are additional fields available compared to querying the Experience Edge endpoint. Therefore, for search queries against the Experience Edge endpoint, use only the [fields described in the Experience Edge documentation](https://doc.sitecore.com/xp/en/developers/hd/23/sitecore-headless-development/the-experience-edge-schema.html#UUID-35040f81-8601-0b4d-8c23-3747c9acffec_section-idm4534106971473632644132653259 "Available fields for content search").