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

Backlink queries using @links #8712

Open
BlueCobold opened this issue Nov 15, 2024 · 1 comment
Open

Backlink queries using @links #8712

BlueCobold opened this issue Nov 15, 2024 · 1 comment

Comments

@BlueCobold
Copy link

BlueCobold commented Nov 15, 2024

Problem

According to the Realm Query Language documentation (https://www.mongodb.com/docs/atlas/device-sdks/realm-query-language/#backlink-queries), it should be possible to include backlink query aggregate operators in Realm-Swift queries. However, this works in RealmKotlin, but not in RealmSwift.

Solution

realm.objects(T.self).filter("@links.@count == 0")
realm.objects(T.self).filter("@links.@count > 1")
realm.objects(T.self).filter("ANY @links.Project.items.quota > 0")

Alternatives

No response

How important is this improvement for you?

Would be a major improvement

Feature would mainly be used with

Local Database only

Copy link

sync-by-unito bot commented Nov 15, 2024

➤ PM Bot commented:

Jira ticket: RCOCOA-2456

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

No branches or pull requests

1 participant