Skip to main content

Subgraph

Gateway Subgraph configuration:

Sample Config

subgraph.yaml
kind: Subgraph
name: service_one
spec:
url: http://service_one:80/query
gateway: federated_service_name
schema_files:
- ../graphql/service_one.graphql

Spec

This section defines the format of Inigo's Subgraph type configuration files. Fields marked as required must be specified if the parent is defined.

FieldTypeDescription
urlstring required
gatewaystring required
enabledboolean default:trueSubgraph is enabled by default. Disabling subgraph will remove if from the gateway and thus from the composition.
schema_files[string]Relative path to the filesystem location of your files containing GraphQL schemas.
For example: ../../schemas/service.graphql.