Commit 7e08669
added return_fields function, attempting to optionally limit fields r… (#633)
Add Django-style .values() and .only() methods to return partial results:
- .values() returns all fields as dicts
- .values('field1', 'field2') returns specific fields as dicts
- Uses Redis RETURN clause for efficient field projection
- Similar with .only(), except returns partial model objects
---------
Co-authored-by: savynorem <[email protected]>
Co-authored-by: Brian Sam-Bodden <[email protected]>
Co-authored-by: Andrew Brookins <[email protected]>
Co-authored-by: Claude <[email protected]>1 parent dddac5b commit 7e08669
File tree
4 files changed
+1119
-15
lines changed- aredis_om/model
- docs
- tests
4 files changed
+1119
-15
lines changed
0 commit comments