Comments (3)
const response: GraphQLResult<CreateTenantMutation> = await API.graphql(options) as GraphQLResult<CreateTenantMutation>
seems to work for me as an interim fix, but it would me much nicer as a generic
from amplify-codegen.
We do not have any API.graphql
code generation in amplify codegen except for angular, where we do have a type casting for each graphql operation. Could you provide more contexts about how the codegen can help you on your use case? For now this looks like an issue for amplify-js library. If this is the case, I will ask js developers for help.
from amplify-codegen.
Closing this due to inactivity. Please re-open if needed.
from amplify-codegen.
Related Issues (20)
- Amplify CLI 12.10 - No queries found to generate types for HOT 6
- Missing Types HOT 2
- Amplify codegen doesn't support namespace queries/mutations HOT 3
- allow customizing generated graphql
- Allow saving patch changes to generated code HOT 2
- Incorrect __typename Generation on Custom Type HOT 1
- Angular code generation for v6 amplify HOT 5
- Cannot generate Models from GraphQL schema HOT 2
- Cannot use 'in' operator to search for 'name' in amplify codegen [UPDATE] HOT 6
- Gen 2 codegen generates wrong getters for "id" field in a model HOT 3
- Amplify codegen and EOENT model-introspection.js/schema.js HOT 3
- Types not generated for non null return types for mutations HOT 1
- Build fail on unknown type from GraphQL Scheme HOT 4
- [WARN] 16:19.312 DataStore - Skipping incoming subscription. HOT 7
- Mutations break after aws-amplify/cli update: "input contains a field that is not defined" HOT 10
- Unable to generate operations.graphql HOT 5
- unnecessary_non_null_assertion for `updatedAt` and `createdAt` in `toString()` from dart generator
- Amplify Configure Codegen FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory HOT 3
- Gen2 Data allow.ownersDefinedIn("owners") does not generate "owners" field on Swift model HOT 6
- how to fix graphql query can't get full result? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amplify-codegen.