Skip to content

Commit

Permalink
fixed bug in select imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishoermann committed Feb 2, 2023
1 parent 94f4acb commit abd8516
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions packages/generator/src/functions/contentWriters/writeSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,6 @@ export const writeSelect = (
writeImport('{ z }', 'zod');
writeImport('{ type Prisma }', prismaClientPath);
writeImportSet(model.selectImports);

// model.fields.forEach((field) => {
// // when using mongodb, there is no `findMany` arg type created even for lists
// // so the basic arg type needs to be imported instead

// // if (field.writeSelectFindManyField) {
// // return writeImport(
// // `{ ${field.outputType.type}FindManyArgsSchema }`,
// // `../${outputTypePath}/${field.outputType.type}FindManyArgsSchema`,
// // );
// // }

// // if (field.writeSelectField) {
// // return writeImport(
// // `{ ${field.outputType.type}ArgsSchema }`,
// // `../${outputTypePath}/${field.outputType.type}ArgsSchema`,
// // );
// // }
// });
}

writer
Expand Down

0 comments on commit abd8516

Please sign in to comment.