-
Notifications
You must be signed in to change notification settings - Fork 24
Add simple where condition to filter on indexed fields #6
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
Conversation
nwestfall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of it I have to test, but let me know your thoughts. Love the contribution!
Change the way the filter json object is generated + some small corrections
|
@nwestfall Did you see my updates? |
|
Any news on this? |
|
Sorry for the delay guys, had a few other projects come up. I'm pulling the code and taking a look to try and get this out. |
nwestfall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think just fix the build and this will be good to go. Like the approach you took for theIndexFilterValue
| /// <returns></returns> | ||
| public async Task<IList<TRecord>> Where<TRecord>(string storeName, string indexName, object filterValue) | ||
| { | ||
| var filters = new List<IndexFilterValue>() {new(indexName, filterValue)}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What version of C# is this? I don't think I'm using it yet, but I'm always happy to update this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a C# 9.0 feature, maybe not ideal to use on a project that target .Net Core 3.1 but it is compatible with.
|
@BenoitLacour never mind, I did not mean to merge this, not sure what happened. But now that it's in master, I can go ahead and fix it. Thanks! |
Hello,
This is a proposal to add a simple where filter to filter on indexed fields. I needed it to make an app I work on faster to recover entities linked data.
Maybe I'm wrong and it has already another solution, but didn't find it so this PR could help other users.
Best regards,
Benoît