Skip to content

Why SELECT after UPDATE? #2599

Answered by a8m
frederikhors asked this question in Q&A
Jun 4, 2022 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

The Exec option uses Save under the hood and load the record - the same layer used by hooks/privacy of UpdateOne operation. If you don't want to load the record, use Update().Where(player.ID(id))....Exec(ctx) instead.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@frederikhors
Comment options

@a8m
Comment options

@frederikhors
Comment options

@rubensayshi
Comment options

@a8m
Comment options

Answer selected by frederikhors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants