DavidHancu / prisma-util

Merge multiple Prisma schema files, model inheritance, resolving name conflicts and timings reports, all in a simple tool.
Apache License 2.0
41 stars 1 forks source link

I got bug when i merge multiple schema file #4

Closed Anhdao153 closed 2 years ago

Anhdao153 commented 2 years ago
Screen Shot 2022-10-06 at 21 46 20

I'm following the tutorial, but when i merged schema, i got this bug. And i searched in a few day, i still got nothing. can some advise for me?

DavidHancu commented 2 years ago

Hi @Anhdao153, can you show your configuration file?

Anhdao153 commented 2 years ago

Here is my configuration file

Screen Shot 2022-10-08 at 19 01 14

Post entity

Screen Shot 2022-10-08 at 19 01 24

User entity

Screen Shot 2022-10-08 at 19 01 52
DavidHancu commented 2 years ago

Hi @Anhdao153!

I can see that you've made a typo in your configuration file. Please replace your relations with this and retry:

"relations": {
    "./src/models/core/Post.prisma:Post.user": "./src/models/core/User.prisma:User"
}
Anhdao153 commented 2 years ago

Hi @DavidHancu ! I tried, but unfortunately it didn't work I still don't know why, please help SOS :(( Screen Shot 2022-10-12 at 22 42 00

Anhdao153 commented 2 years ago

@DavidHancu Hi. after a few days from the last message i still can't resolve this bug, would you mind help me to fix it, please?

DavidHancu commented 2 years ago

Hi @Anhdao153, this is not an issue with Prisma Util but with your configuration, as I can't replicate this issue in Prisma Util v1.3.0.

DavidHancu commented 2 years ago

Closed due to inactivity.