amplify-codegen
amplify-codegen copied to clipboard
Amplify Codegen is a JavaScript toolkit library for frontend and mobile developers building Amplify applications.
### Before opening, please confirm: - [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists. - [X] I have...
### Is this feature request related to a new or existing Amplify category? auth, api ### Is this related to another service? _No response_ ### Describe the feature you'd like...
The code just ignores the GraphQL response errors and returns the data (which will be null): https://github.com/aws-amplify/amplify-codegen/blob/8c78e9737af95febf1f4dfe83077068d8497744b/packages/graphql-types-generator/src/angular/index.ts#L225 So using this library there is no way to access the errors array.
#### Description of changes If a schema contains non-models types that contain models, they're not generated correctly in Swift, because of a missing label, and the code doesn't compile. That...
### Amplify CLI Version 12.1.1 ### Question When creating a type in schema.graphql like this ```ts type NodeModel @model @auth(rules: [{ allow: private}]) { id: ID! @primaryKey ... } ```...
### Description The models generated by `amplify codegen models` won't compile because of the following error: > The parameter 'id' can't have a value of 'null' because of its type,...
### Before opening, please confirm: - [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+) and [discussions](https://github.com/aws-amplify/amplify-js/discussions). - [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md#bug-reports). - [X]...
**Describe the bug** When you have a connection field in your schema, like this: ```js type Order @model(subscriptions: null) @key(name: "ByCustomer", fields: ["customerID"], queryField: "ordersByCustomer") { id: ID! businessID: ID!...
### How did you install the Amplify CLI? yarn ### If applicable, what version of Node.js are you using? v18.14.2 ### Amplify CLI Version 11.0.5 ### What operating system are...
**Is your feature request related to a problem? Please describe.** I want to output typescript types to lambda functions as well as my frontend application also. **Describe the solution you'd...