CMS 13 Graph QL Different between services.AddContentGraph(); and AddGraphContentClient()

Hi,

I need to understand difference between these two services.AddContentGraph(); and AddGraphContentClient(). Both are required to add in startup.cs ? 

 

 

#342820
Jun 18, 2026 8:56

Hi,

They are not the same thing.

  • AddContentGraph() wires CMS into Optimizely Graph, so the CMS content can be synced/indexed in Graph.
    • // CMS -> Graph integration / content synchronization
  • AddGraphContentClient() registers the SDK client used to query Graph from C# code, for example by injecting IGraphContentClient.
    • // C# SDK query client / IGraphContentClient

So you normally need AddContentGraph() when this CMS app is responsible for syncing content to Graph. You need AddGraphContentClient() only if your code is querying Graph through the SDK.

In many CMS 13 projects both will be registered, but they cover different responsibilities.

#342850
Edited, Jun 22, 2026 7:13
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.