Open roballsopp opened 4 years ago
@roballsopp which version of the CLI are you using?
Sorry, cli version 4.21.0
Hi! Any news of this?
I found that you can run amplify codegen model
to re-generate the index.d.ts
and the schema.js
. The model
option should be added to the docs of the amplify codegen
command, I think.
I'm using the JS GraphQL plugin for IntelliJ, and I can't get proper code highlighting/completion in my graphql because
amplify codegen
(and it seems theaws appsync get-introspection-schema
command as well) doesn't generate the AWS scalar types in myschema.json
file that it needs for thecreatedAt
andupdatedAt
fields it adds automatically to each model.This seems to totally blow up code assistance for all my types when I use them in my code
I'm also using the IntrospectionFragmentMatcher in Apollo, and worried there might be issues with an incomplete schema.
If I do the introspection with something like GraphQL Playground, I see the true full schema with a bunch of directives and the
AWSDateTime
scalar:It would be really nice if codegen brought the full introspection schema down, or at least the scalars appsync automatically adds.
Is
amplify codegen
usingaws appsync get-introspection-schema
under the hood? If so, I'll happily post this in some aws-cli/appsync specific forum.