Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit fields to return with RETURN keyword #568

Open
DennyD17 opened this issue Oct 3, 2023 · 0 comments
Open

Limit fields to return with RETURN keyword #568

DennyD17 opened this issue Oct 3, 2023 · 0 comments
Assignees

Comments

@DennyD17
Copy link

DennyD17 commented Oct 3, 2023

Hello!
Is there an ability to limit fields returning by model query (by RedisSearch's RETURN keyword)?
If not --- can you please add this task to the backlog? Something like "fields" and "exclude" methods would be great!

And another one question.
I've added RETURN functionality to pagination property. And now I have some problems with serialisation: Redis search returns results in format different than "regular" ( ["$", '{"json": "foo"}')] and as a result I have JsonModel with json strings into fields.
My crutch - override init of model to try to json.loads each init value.
Any good suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants