Skip to content

Schema Definition with custom scalars from AWS Amplify #4311

Discussion options

You must be logged in to vote

I see Amplify has this file, https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-codegen/awsAppSyncDirectives.graphql, so I guess if I 'imported' that, it would include those definitions. Seems like this should be done in the 'documents' part of the config. However, this is a globally installed node_module so not certain how to reference it.

Edit - seems to work by including the file as an extra schema file

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
9 replies
@amaingot
Comment options

@tombuckley91
Comment options

@cjjenkinson
Comment options

@jjatzkowski
Comment options

@hasan-aa
Comment options

Answer selected by ChrisSargent
Comment options

You must be logged in to vote
1 reply
@japfohl
Comment options

Comment options

You must be logged in to vote
1 reply
@misha-erm
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet