Replies: 1 comment
-
// Selecting the name column only
assert_eq!(
cake::Entity::find()
.select_only()
.column(cake::Column::Name)
.build(DbBackend::Postgres)
.to_string(),
r#"SELECT "cake"."name" FROM "cake""#
);https://www.sea-ql.org/SeaORM/docs/advanced-query/custom-select/#select-partial-attributes |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
can sea-orm select only part of fields in Model rather than the whole Model?
Beta Was this translation helpful? Give feedback.
All reactions