Skip to content

Commit 7eed946

Browse files
add --statement-max-depth flag to optional parameters (#7641)
1 parent 0e7d09e commit 7eed946

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

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

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

237237
## npx ampx generate graphql-client-code
238238

239-
Generate GraphQL statements and types for your frontend application to consume.
239+
Generate GraphQL statements and types for your frontend application to consume.
240240

241241
### Options
242242

243243
The available parameters for `npx ampx generate graphql-client-code` are:
244244

245245
Required parameters:
246-
- Stack identifier
246+
- Stack identifier
247247
- `--stack`(_string_) - A stack name that contains an Amplify backend.
248248
- Project identifier
249249
- `--app-id`(_string_) - The Amplify App ID of the project.
@@ -254,6 +254,7 @@ Optional parameters:
254254
- `--format`(_string_) (choices: `modelgen`, `graphql-codegen`, `introspection`) - Specifies the format of the GraphQL client code to be generated.
255255
- `--model-target` (_string_) (choices: `java`, `swift`, `javascript`, `typescript`, `dart`) - Specifies the modelgen export target. Only applies when the --format parameter is set to modelgen.
256256
- `--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.
257+
- `--statement-max-depth`(_integer_) - Specifies the maximum depth of the generated GraphQL statements. Only applies when the --format parameter is set to graphql-codegen.
257258
- `--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.
258259
- `--all`(_boolean_)- Shows hidden options.
259260
- `--profile`(_string_) - Specifies an AWS profile name.
@@ -303,7 +304,7 @@ Run Amplify codegen command to generate GraphQL codegen:
303304

304305
```bash title="Terminal" showLineNumbers={false}
305306
npx ampx generate graphql-client-code --stack Backend --platform ts --out ./src
306-
```
307+
```
307308

308309
#### Generate codegen in specific language and format
309310

0 commit comments

Comments
 (0)