shopify hydrogen codegen
Automatically generates GraphQL types for your project’s Storefront API queries.
Automatically generates GraphQL types for your project’s Storefront API queries.
Usage
shopify hydrogen codegen [flags]Summary
Automatically generates GraphQL types for your project’s Storefront API queries.
Flags
--codegen-config-path <value>string— Specify a path to a codegen configuration file. Defaults to<root>/codegen.tsif it exists. optional--path <value>string— The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run. optional Environment:SHOPIFY_HYDROGEN_FLAG_PATH.--watch— Watch the project for changes to update types on file save. optional