Skip to content

Commit a20a72b

Browse files
add --statement-max-depth flag to optional parameters
1 parent 659e807 commit a20a72b

File tree

1 file changed

+5
-4
lines changed
  • src/pages/[platform]/reference/cli-commands

1 file changed

+5
-4
lines changed

src/pages/[platform]/reference/cli-commands/index.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ npx ampx generate outputs --stack amplify-nextamplifygen2-josef-sandbox-ca85e108
234234

235235
## npx ampx generate graphql-client-code
236236

237-
Generate GraphQL statements and types for your frontend application to consume.
237+
Generate GraphQL statements and types for your frontend application to consume.
238238

239239
<SubCommandHeading parentCommand="ampx-generate-graphql-client-code">Options</SubCommandHeading>
240240

241241
The available parameters for `npx ampx generate graphql-client-code` are:
242242

243243
Required parameters:
244-
- Stack identifier
244+
- Stack identifier
245245
- `--stack`(_string_) - A stack name that contains an Amplify backend.
246246
- Project identifier
247247
- `--app-id`(_string_) - The Amplify App ID of the project.
@@ -252,6 +252,7 @@ Optional parameters:
252252
- `--format`(_string_) (choices: `modelgen`, `graphql-codegen`, `introspection`) - Specifies the format of the GraphQL client code to be generated.
253253
- `--model-target` (_string_) (choices: `java`, `swift`, `javascript`, `typescript`, `dart`) - Specifies the modelgen export target. Only applies when the --format parameter is set to modelgen.
254254
- `--statement-target`(_string_) (choices: `javascript`, `graphql`, `flow`, `typescript`, `angular`) - Specifies the graphql-codegen statement export target. Only applies when the --format parameter is set to graphql-codegen.
255+
- `--statement-max-depth`(_integer_) - Specifies the maximum depth of the generated GraphQL statements. Only applies when the --format parameter is set to graphql-codegen.
255256
- `--type-target`(_string_) (choices: `json`, `swift`, `typescript`, `flow`, `scala`, `flow-modern`, `angular`) - Specifies the optional graphql-codegen type export target. Only applies when the --format parameter is set to graphql-codegen.
256257
- `--all`(_boolean_)- Shows hidden options.
257258
- `--profile`(_string_) - Specifies an AWS profile name.
@@ -260,7 +261,7 @@ Optional parameters:
260261
<SubCommandHeading parentCommand="ampx-generate-graphql-client-code">Usage</SubCommandHeading>
261262

262263

263-
### Generate GraphQL client code using the Amplify App ID and branch.
264+
### Generate GraphQL client code using the Amplify App ID and branch.
264265

265266
```bash title="Terminal" showLineNumbers={false}
266267
npx ampx generate graphql-client-code --app-id <your-amplify-app-id> --branch staging
@@ -301,7 +302,7 @@ Run Amplify codegen command to generate GraphQL codegen:
301302

302303
```bash title="Terminal" showLineNumbers={false}
303304
npx ampx generate graphql-client-code --stack Backend --platform ts --out ./src
304-
```
305+
```
305306

306307
### Generate codegen in specific language and format
307308

0 commit comments

Comments
 (0)