amazon-archives / aws-amplify-serverless-plugin

Plugin for the Serverless Framework to output AWS Amplify configuration files.
Apache License 2.0
124 stars 30 forks source link

Allow Setting the "maxDepth" Option #50

Open gabehayes opened 5 years ago

gabehayes commented 5 years ago

Description of changes: I was running into an error when generating documents appsync and graphql types.

The root of the issue had to do with generating queries when my schema was returning nested types. See this issue for more details.

To address, I added the maxDepth option to fileDetails when generating appsync or graphql types.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

gabehayes commented 5 years ago

@adrianhall Can you provide some guidance here? Is this not something you are looking to add to the plugin or is there a better way to approach this that I'm not thinking of?

Happy to help in any way I can.

bsmith42 commented 5 years ago

This PR allows the same maxDepth argument to be passed in that is similar to the amplify CLI.

danb235 commented 5 years ago

Any news on merging this?