aws-amplify / aws-amplify/amplify-codegen

Headless support for amplify add codegen

Open
#60 5 comments 5 reactions 0 assignees View on GitHub
amplify-codegen feature-request headless-support
Dominant language
TypeScript
Stars
59
Forks
64
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
I am trying to add multi env support for externally linked APIs but this is currently not possible.

**Describe the solution you'd like**
Headless support for amplify add codegen that lets you pass the codegen config as an argument.

```
CONFIG="{\
\"generateCode\":true,\
\"codeLanguage\":\"typescript\",\
\"fileNamePattern\":\"src/graphql/**/*.ts\",\
\"generatedFileName\":\"src/API.ts\",\
\"generateDocs\":true\
}"

amplify add codegen --apiId xxxxxxxxxxxxxxxxx --config $CONFIG
```

**Describe alternatives you've considered**
Add multi env support for externally linked APIs that allows you to link each environment to a specific AppSync ID.

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.