Allow init Query<Model> object #8657
andrefmsilva
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From source code looks like Query init method is private and i want to create it myself and reuse queries in multiple places.
For example, we can abstract repository that fetch realm object using an ObjectQuery enum, where each case generate a different Query and Sort descriptions.
I have this abstraction but with current implementation i need to use NSPredicate and loose Query features.
It's a nice to have something like a Query builder that returns a Query object and we can use it or just convert it to predicate.
Beta Was this translation helpful? Give feedback.
All reactions