Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use maxDepth for specific connection directives in schema for Amplify Codegen #251

Open
2 tasks
oe-bayram opened this issue Sep 27, 2021 · 0 comments
Open
2 tasks
Labels
feature-request New feature or request p4 plugins-support transferred Issue has been transferred from another Amplify repository

Comments

@oe-bayram
Copy link

Is this related to a new or existing Amplify category?

api

Is this related to another service?

No response

Describe the feature you'd like to request

For the generation of types one can set maxDepth for all connection directives. But on the one hand this is not necessary for all connection fields and on the other hand we need some fields to be set with more depth.

It would be great to have the option to set the maxDepth specifically for a connection field.
Other connection fields not set specifically can take the default value set in .graphqlconfig.yml

Describe the solution you'd like

Option to set the maxDepth specifically for a connection field like:

orderPositions: [OrderPosition!]! @connection(keyName: "orderPositionsByOrder", fields: ["id"], maxDepth: 6)

Describe alternatives you've considered

Define custom types for each connection field.

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@marcvberg marcvberg transferred this issue from aws-amplify/amplify-cli Oct 4, 2021
@marcvberg marcvberg added the transferred Issue has been transferred from another Amplify repository label Oct 4, 2021
@AaronZyLee AaronZyLee added feature-request New feature or request plugins-support and removed enhancement labels Oct 14, 2021
@phani-srikar phani-srikar removed the feature-request New feature or request label Jan 30, 2022
@alharris-at alharris-at added feature-request New feature or request p4 labels Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request p4 plugins-support transferred Issue has been transferred from another Amplify repository
Projects
None yet
Development

No branches or pull requests

6 participants