We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's not possible to provide a custom type as part of the Create method:
type MyThingy struct { Name string `json:"name"` } // does not work: // rpc request err Error: Expected a CBOR integer, text, array or map // unavailable ErrorChannel <nil> // (See issue #186 ) _, err = surrealdb.Create[struct{}](surrealConn, "table1", MyThingy{ Name: "Hello World", }) // works _, err = surrealdb.Create[struct{}](surrealConn, "table1", map[string]interface{}{ "name": "Hello World", })
Custom types to be usable as a parameter to Create.
surreal 2.1.2 for linux on amd64
No response
The text was updated successfully, but these errors were encountered:
Thanks for raising this @EtienneBruines. Can you please confirm the code you shared? I tried it successfully
Sorry, something went wrong.
remade
No branches or pull requests
Describe the bug
It's not possible to provide a custom type as part of the Create method:
Steps to reproduce
Expected behaviour
Custom types to be usable as a parameter to Create.
SurrealDB version
surreal 2.1.2 for linux on amd64
Contact Details
No response
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: