Subgraph
Gateway Subgraph configuration:
Sample Config
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.
Field | Type | Description |
---|---|---|
url | string required | |
gateway | string required | |
enabled | boolean default:true | Subgraph 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 . |