Install and configure
Describes how to configure Optimizely Graph for Commerce Connect
Optimizely Graph for Commerce Connect
Prerequisites
Get started
- Install
Optimizely.Graph.Commercefrom Optimizely Nuget package. - Add the following code snippet to
ConfigureServicesmethod inStartup.cs:services.AddCommerceGraph(); - Add namespace.
using Optimizely.Graph.Commerce; - Add Optimizely setting as the same level as Episerver in
appsetting.json."Optimizely": { "ContentGraph": { "GatewayAddress": "https://cg.optimizely.com", "AppKey": "{your-app-key}", "Secret": "{your-secret}", "SingleKey": "{your-single-key}", "AllowSendingLog": "true" } } - Build the solution.
- Prepare the database.
- Run the site. The first time the site is ran the site executes data migration and the homepage displays when done.
- Go to
GraphQLAdminto clear all previous synced data. Go to the Optimizely Graph content synchronization job to start syncing data. Go toGraphiQLto write queries to fetch data.
Updated 13 days ago
Did this page help you?
