Tool which generates a typescript client for SurrealDB and zod schema of a given database
I have tables in the `foo_bar` format. When I try to use the generated types, I get ZodErrors for `RecordId` like this: ```haskell ZodError: [{ "code": "custom", "message": "RecordId must be of type 'fooBar'", "path": [ "id" ] }] at Object.get error [as error] (file:///node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:587:31) at _ZodObject.parse (file:///node_modules/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:692:22) at getfooBarById (file:///surreal/models/my-project/client/fooBar/getfooBarById.ts:8:55) ``` I don't see why the `RecordId` would be created in the camelCase format if the table name is not camel case, unless I am missing something here. It looks to me like a mistake introduced in #45.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by zvictor and has received 2 comments.