Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Select the fields in sqlc.embed() #2646

Unanswered
KevenGoncalves asked this question in Q&A
Discussion options

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"
}
}

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /