Skip to main content
Version: v3.x

DDN CLI: ddn subgraph add

Add a Subgraph config file to Supergraph config file.

Synopsis

Add a Subgraph config file to Supergraph config file

ddn subgraph add --subgraph <path-to-subgraph-config-file> --target-supergraph <path-to-supergraph-config-file> [flags]

Examples

# Add a Subgraph config file "./app/subgraph.yaml" to the Supergraph config file "./supergraph.yaml"
ddn subgraph add --subgraph ./app/subgraph.yaml --target-supergraph ./supergraph.yaml

# Add a Subgraph config file "./app/subgraph.yaml" to multiple Supergraph config files"
ddn subgraph add --subgraph ./app/subgraph.yaml --target-supergraph ./supergraph.stg.yaml --target-supergraph ./supergraph.prod.yaml

Options

-h, --help                            help for add
--subgraph string Path to Subgraph config file (required)
--target-supergraph stringArray Supergraph config file to add the Subgraph. Can be repeated to provide multiple Supergraph config files (required)

Options inherited from parent operations

--log-level string   Log level. Can be DEBUG, WARN, INFO, ERROR, or FATAL. (default "INFO")
--no-prompt Do not prompt for required but missing flags
--out string Output format. Can be table, json or yaml. (default "table")
--timeout int Request timeout in seconds [env: HASURA_DDN_TIMEOUT] (default 100)

Parent operation