This allows creating connections to the Edge using the Edge Platform Context instead of an ApiKey. It introduces new extension methods on the SitecoreLayoutClientBuilder called AddGraphQlWithContextHandler for the LayoutService.Client and enhances the extensions on GraphQlConfiguration called AddGraphQlClient for the GraphQL. Introducing ContextId to the SitecoreGraphQlClientOptions as well as by default using the https://edge-platform.sitecorecloud.io/v1/content/api/graphql/v1 endpoint instead of throwing an exception when passing in a ContextId.
Moving forward Sitecore and XM Cloud in particular will greatly rely on the unified Edge Platform endpoint with ContextId making this an important addition to the SDK.
This resolves #10
Testing
[X] The Unit & Intergration tests are passing.
[X] I have added the necessary tests to cover my changes.
Description / Motivation
This allows creating connections to the Edge using the Edge Platform Context instead of an ApiKey. It introduces new extension methods on the
SitecoreLayoutClientBuilder
calledAddGraphQlWithContextHandler
for the LayoutService.Client and enhances the extensions onGraphQlConfiguration
calledAddGraphQlClient
for the GraphQL. IntroducingContextId
to theSitecoreGraphQlClientOptions
as well as by default using the https://edge-platform.sitecorecloud.io/v1/content/api/graphql/v1 endpoint instead of throwing an exception when passing in a ContextId.Moving forward Sitecore and XM Cloud in particular will greatly rely on the unified Edge Platform endpoint with ContextId making this an important addition to the SDK.
This resolves #10
Testing
Terms