Closed zvictor closed 2 months ago
From first guess, looks like an issue in the surrealdb (client)
@zvictor did you provide a schema file? When a schema file is used we spin up an instance with docker using the latest main version, if you want to use v2 then you'll need to provide the correct image for the beta
-i, --surrealImage SurrealDB docker image (default: surrealdb/surrealdb:latest)
of course. the record::id
is part of the schema. Once I get back to my computer I will reply with an example schema
of course. the
record::id
is part of the schema. Once I get back to my computer I will reply with an example schema
Okay, try adding the -i
flag with the nightly image surrealdb/surrealdb:nightly
see if that fixes the issue for you.
That works! I am sorry I didn't notice the --surrealImage
had been added...
Morever, to my surprise, using --surrealImage surrealdb/surrealdb:nightly
also gets rid of #63.
SurrealDB 2 has new functions that did not exist before.
When running surrealdb-client-generator in a code with such functions, it fails. As an example,
record::id
causes an error to be thrown.