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

fix(hydra-cli): ignore generating module import for self referenced e… #322

Merged
merged 2 commits into from
Mar 17, 2021

Conversation

metmirr
Copy link
Contributor

@metmirr metmirr commented Mar 16, 2021

It fixes module imports for self relationships.
Example:

type Member @entity {
  invitor: Member
  invitees: [Member!] @derivedFrom(field: "invitor")
}

The generated member/member.model.ts will have a module import statement like this import {} from '../member/member.model.ts' which is incorrect.

affects: @dzlzv/hydra-cli

@dzhelezov
Copy link
Contributor

What's the issue it is fixing? Perhaps we can add a test?

@dzhelezov dzhelezov merged commit 2d09777 into Joystream:master Mar 17, 2021
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.

2 participants