Skip to content

Commit

Permalink
πŸ› fixed schema name in generate schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hemedani committed Apr 15, 2022
1 parent a83a7e1 commit c3a7087
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/types/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ export const generateSchemTypes = () => {
export type ${schema}Inp = {
${
Object.keys(schemas[schema].inrelation).map(schemaName =>
`${schemaName}: number | ${schemaName}Inp`
`${schemaName}: number | ${
schemas[schema].inrelation[schemaName].schemaName
}Inp`
).join("\n")
}
${
Object.keys(schemas[schema].outrelation).map(schemaName =>
`${schemaName}: number | ${schemaName}Inp`
`${schemaName}: number | ${
schemas[schema].outrelation[schemaName].schemaName
}Inp`
).join("\n")
}
}
Expand Down

0 comments on commit c3a7087

Please sign in to comment.