nestjs-prisma-graphql-crud-gen icon indicating copy to clipboard operation
nestjs-prisma-graphql-crud-gen copied to clipboard

Path issue in .args.ts files for imports

Open abaritci opened this issue 2 years ago • 0 comments

I have 3 tables im my DB:

user role user_roles

The models are User, Role and UserRoles

After generation folder with files in the user.args.ts file I have errors connected with import paths. Each time when I generating and getting new graphql schema I mannualy changing the paths. For example:

import { UserRolesWhereInput } from '../user/inputs/UserRolesWhereInput.input';

to

import { UserRolesWhereInput } from '../userRoles/inputs/UserRolesWhereInput.input';

In user.args.ts file.

How can I solve this issue and, also, how can I generate new table CRUDs for each generations only? I don't want to generate every time from scratch for each tables.

@mk668a @MinJungHyun When you can fix this issue?

abaritci avatar Apr 02 '23 13:04 abaritci