Select the fields in sqlc.embed() #2646
Unanswered
KevenGoncalves
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm new with sqlc and I have an doubt when using sqlc.embed():
I want to select certains field inside the sqlc.embed instead of all table:
Ex: sqlc.embed(role.role) instead sqlc.embed(role)
Expected result:
{
"role": {
"role": "ADMIN"
}
}
Current result:
{
"role": {
id: 1,
"role": "ADMIN"
}
}
Beta Was this translation helpful? Give feedback.
All reactions