Skip to content

Generated relation types are now shallow, BREAKING CHANGE #305

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MischaPanch
Copy link

Just a reference on how #304 could be solved. One could also add a new type <Model>ShallowRelations, but it would be more work to add this to all the conditionals, so I wanted to get your opinion on it first @chrishoermann. As described in the issue, I don't fully see how non-shallow relations would be actually useful.

Before this, fields in a Relations type would reference Relations type, which would often reference Relations type itself, leading to infinite nesting.

Now instead the fields reference

Before this, fields in a <Model>Relations type would reference <OtherModel>Relations type, which
would often reference <Model>Relations type itself, leading to infinite nesting.

Now instead the fields reference <OtherModel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant