Skip to main content
Version: v3.x (DDN)

DDN CLI: ddn codemod upgrade-supergraph-config-v1-to-v2

Upgrade all Supergraph config files at the root of the project directory from v1 to v2.

Synopsis

For more information on what's changed, check out the docs: https://hasura.io/docs/3.0/project-configuration/upgrading-project-config/upgrade-project-v2

ddn codemod upgrade-supergraph-config-v1-to-v2 --dir <project-dir> [flags]

Examples

# Upgrade all Supergraph config files in the current directory from v1 to v2
ddn codemod upgrade-supergraph-config-v1-to-v2 --dir .

Options

    --dir string   The Hasura project directory (required)
-h, --help help for upgrade-supergraph-config-v1-to-v2

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

  • ddn codemod - Perform transformations on your Hasura project directory