You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate GraphQL statements and types for your frontend application to consume.
239
+
Generate GraphQL statements and types for your frontend application to consume.
240
240
241
241
### Options
242
242
243
243
The available parameters for `npx ampx generate graphql-client-code` are:
244
244
245
245
Required parameters:
246
-
- Stack identifier
246
+
- Stack identifier
247
247
-`--stack`(_string_) - A stack name that contains an Amplify backend.
248
248
- Project identifier
249
249
-`--app-id`(_string_) - The Amplify App ID of the project.
@@ -254,6 +254,7 @@ Optional parameters:
254
254
-`--format`(_string_) (choices: `modelgen`, `graphql-codegen`, `introspection`) - Specifies the format of the GraphQL client code to be generated.
255
255
-`--model-target` (_string_) (choices: `java`, `swift`, `javascript`, `typescript`, `dart`) - Specifies the modelgen export target. Only applies when the --format parameter is set to modelgen.
256
256
-`--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.
257
258
-`--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.
258
259
-`--all`(_boolean_)- Shows hidden options.
259
260
-`--profile`(_string_) - Specifies an AWS profile name.
@@ -303,7 +304,7 @@ Run Amplify codegen command to generate GraphQL codegen:
0 commit comments