sebastianwessel / surrealdb-client-generator

Tool which generates a typescript client for SurrealDB and zod schema of a given database
MIT License
76 stars 12 forks source link

Add camelcase conversion to tableName in mergeNested.ts #36

Closed hammo92 closed 3 months ago

hammo92 commented 3 months ago

Camelcase conversion was missing in the merge nested function leading to incorrect naming:

//_generated/belongsTo/belongsToSchemaGen.ts
export const belongs_toInputSchemaGen = z.object({}).passthrough();

//schema/belongsTo/belongsToSchema.ts
import { belongsToInputSchemaGen, belongsToOutputSchemaGen } from "../../_generated/belongsTo/belongsToSchemaGen.js";