We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Multiple double edges produce conflicting implementations of trait.
model ModelA { id String @id edgeOne ModelB @relation("one", fields: [edgeOneId], references: [id]) edgeOneId String edgeTwo ModelB @relation("two", fields: [edgeTwoId], references: [id]) edgeTwoId String } model ModelB { id String @id asEdgeOne ModelA[] @relation("one") asEdgeTwo ModelA[] @relation("two") }
impl From<super::model_b::Args> for WithParam { fn from(args: super::model_b::Args) -> Self { Self::EdgeOne(args) } } impl From<super::model_b::Args> for WithParam { fn from(args: super::model_b::Args) -> Self { Self::EdgeTwo(args) } } // ... impl From<super::model_a::FindManyArgs> for WithParam { fn from(args: super::model_a::FindManyArgs) -> Self { Self::AsEdgeOne(args) } } impl From<super::model_a::FindManyArgs> for WithParam { fn from(args: super::model_a::FindManyArgs) -> Self { Self::AsEdgeTwo(args) } }
The text was updated successfully, but these errors were encountered:
Didn't consider this but I know why it's occurring. Will fix in the next release
Sorry, something went wrong.
I think I've got it, try using rev = "9af8c576a53cfeefc65118cf5ab8fe310a92c2a3" instead of tag = "0.4.1"
rev = "9af8c576a53cfeefc65118cf5ab8fe310a92c2a3"
tag = "0.4.1"
Tested on a complex schema along with SQLite and it works as expected, thanks for looking into this! 🙇🏻
No branches or pull requests
Summary
Multiple double edges produce conflicting implementations of trait.
Example schema
Generated code
The text was updated successfully, but these errors were encountered: