sebastianwessel / surrealdb-client-generator

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

Type issues #3

Closed alexgorbatchev closed 11 months ago

alexgorbatchev commented 11 months ago

Thanks for this amazing tool! I'm just starting to learn SurrealDB and am not 100% confident that this is an issue. When looking at generated files, I see that status and result are being used on types that are missing these fields.

image

Curious if this is expected?

My dependencies are

"dependencies": {
  "@sebastianwessel/surql-gen": "^1.1.0",
  "surrealdb.js": "^0.11.0"
}

Am I doing something wrong?

alexgorbatchev commented 11 months ago

I dug a bit into this and found that this is an issue with surreal.js package. I opened a PR to fix https://github.com/surrealdb/surrealdb.js/pull/205