Closed alaarihan closed 3 years ago
Thanks for the report will work on it
If you have time and want to try solving it you can take a look here https://github.com/paljs/prisma-tools/blob/7f3541095a50c2447051dbcca9ed7b43d7715fbc/packages/generator/src/graphql-modules/index.ts#L50
Yeah sure, I just want to know how can I test the changes that I will make?
You can make any folder in https://github.com/paljs/prisma-tools/tree/master/packages/generator/__tests__ path and take nexus-prisma as an example.
to run the generator just do node index.js
command inside your folder
Hi,
While I'm creating a self relations in a module, pal g made a wrong import from the module to its self, this confusion happened because the module has relations to its self:
The generated code was like this:
as you see the module name is CategoryModule and it contain an import to CategoryModule in the same time