-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
manyMany join tables are not generated #46
Comments
Hi @maxmousse, I have the same problem, did you find a fix or a workaround? |
@pauldeste I did not have time to look for a solution yet. Maybe this week-end. If the feature was working before, my first guess is that something changed in |
So I made some tests by runnig the generator with {
"name": "categories",
"kind": "object",
"isList": true,
"isRequired": true,
"isUnique": false,
"isId": false,
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Category",
"relationName": "CategoryToPost",
"relationFromFields": [],
"relationToFields": ["id"],
"isGenerated": false,
"isUpdatedAt": false
} to: {
"name": "categories",
"kind": "object",
"isList": true,
"isRequired": true,
"isUnique": false,
"isId": false,
"isReadOnly": false,
"hasDefaultValue": false,
"type": "Category",
"relationName": "CategoryToPost",
"relationFromFields": [],
"relationToFields": [],
"isGenerated": false,
"isUpdatedAt": false
} The key I think the function in charge of getting the @marcjulian, if you agree with this, I can open a pull request =). However, I don't know how you deal with version compatibility between this generator and prisma. |
Thanks for @maxmousse PR this should be fixed and you can test it in the latest dev release npm install -D [email protected] Let me know if this is fixed on your side. |
Hello @marcjulian, thanks for the review and merging the PR. I tried the new version of the package, and the manyMany join tables are back in the generated dbml, so it's working for me =) |
I just tried it with Prisma |
I guess this issue can be closed since it's fixed? |
I there,
First thank you for maintaining this prisma generator, it's very useful =)
Problem
I'm reporting this issue cause I am not able to have the manyMany join tables generated
How to reproduce
I am using
[email protected]
.Here is my prisma schema:
and here is the generator output:
If that's a bug, I'd be happy to help fix it =)
The text was updated successfully, but these errors were encountered: