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

ToDictionary(Tkey, Filter) not filter #3607

Closed
carbonete opened this issue May 21, 2024 · 3 comments
Closed

ToDictionary(Tkey, Filter) not filter #3607

carbonete opened this issue May 21, 2024 · 3 comments

Comments

@carbonete
Copy link

carbonete commented May 21, 2024

What happened?

When use .ToDictionary( Tkey, Filter) allways return all documents.

Repro steps

Always return all documents, change logical operator not affect. Allways return all docs.

var favDic =RealmInstance
                    .All<FavoriteList>()
                    .ToDictionary( k => k.Name , l=> l.Name != DefaultListName )

Version

11.6.1

What Atlas Services are you using?

Atlas App Services: Functions or GraphQL or DataAPI etc

What type of application is this?

Xamarin

Client OS and version

Android 10

Code snippets

var favDic = RealmInstance
.All()
.ToDictionary( k => k.Name , l=> l.Name == DefaultListName )

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

Copy link

sync-by-unito bot commented May 21, 2024

➤ PM Bot commented:

Jira ticket: RNET-1147

@nirinchev
Copy link
Member

Where does this method come from? To me this looks like the built-in Enumerable.ToDictionary where the second argument isn't a filter but instead a predicate that generates the value of the dictionary based on the enumerated object.

@nirinchev nirinchev added the More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. label May 21, 2024
@nirinchev nirinchev self-assigned this May 21, 2024
@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label May 21, 2024
@carbonete
Copy link
Author

@nirinchev sorry my mistake in use this method.

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels May 22, 2024
@sync-by-unito sync-by-unito bot removed the Needs-Attention Reporter has responded. Review comment. label May 29, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants