You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can perform find_many on a partial model to select specific fields, but it returns list of partial model instances. But what if we just need to get a list of field values? Can we do it without first creating an instance of list of partial model instances and then extracting field value from each instance (seems like an overhead)? Something like values_list in Django or Tortoise-ORM basically.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We can perform
find_many
on a partial model to select specific fields, but it returns list of partial model instances. But what if we just need to get a list of field values? Can we do it without first creating an instance of list of partial model instances and then extracting field value from each instance (seems like an overhead)? Something likevalues_list
in Django or Tortoise-ORM basically.Beta Was this translation helpful? Give feedback.
All reactions