Description
Is your feature request related to a problem?
The RecordID from the surreal models is great but now after the change in the SDK I have to refactor to map the id to a string. It would be great to have a simple way to resolve this
Example:
type CareerNode struct {
ID surrealModels.RecordID json:"id" validate:"required"
Name string json:"name" validate:"required"
Emoji string json:"emoji" validate:"required"
}
When I query them I get:
[
{
"id": {
"Table": "career",
"ID": "quimica"
},
"name": "Ingeniería quimica",
"emoji": "🧪"
},
{
"id": {
"Table": "career",
"ID": "sistemas"
},
"name": "Ingeniería de sistemas",
"emoji": "💾"
}
]
I would like id to be for example: career:quimica
Describe the solution
Maybe a function that a accepts a generic with a RecordId
Alternative methods
Don't know other method
SurrealDB version
2.0.0
Contact Details
No response
Is there an existing issue for this?
- I have searched the existing issues
Code of Conduct
- I agree to follow this project's Code of Conduct
Activity