Setup and Configuration
Step 1: Access Integration Settings
- Navigate to your graph in the dashboard
- Go to the Settings section
- Click on Integrations
- Select Schema Registry integration
Step 2: Choose Your Platform
Select WunderGraph Cosmo from the dropdown.WunderGraph Cosmo Integration
Prerequisites
- Active WunderGraph Cosmo account
- API key with appropriate permissions
- Access to your Cosmo studio
Step 3: Generate Cosmo API Token
To learn how to generate an API key, click here.Step 4: Configure Cosmo Integration
- Select Platform: Choose “WunderGraph Cosmo” from the dropdown
- Enter API Token: Paste your Cosmo API token
- Choose Integration Mode: Select either “Select Graph” or “Create Graph”
Option A: Select Existing Graph
If you want to connect to an existing Cosmo graph:- Select Graph Tab: Click on “Select Graph”
- Choose Graph: Select from available graphs organized by namespace
- Graphs are grouped by their namespace (e.g.,
default,production)
- Graphs are grouped by their namespace (e.g.,
- Save Configuration: Click “Save” to complete the integration
Option B: Create New Graph
If you want to create a new federated graph in Cosmo:- Create Graph Tab: Click on “Create Graph”
- Graph Name: Enter a unique name for your new graph
- Namespace: Select the target namespace from available options
- Routing URL: Enter the URL where the router will be accessible
- Example:
https://api.example.com/graphql
- Example:
- Label Matchers (Optional): Add label matchers for subgraph selection
- Format:
key=valuepairs - Press Enter or Space to add each matcher
- Example:
env=production,team=backend
- Format:
- Save Configuration: Click “Save” to create and connect the graph