From 3433654a97a5c38f345391b0e362999ec9008919 Mon Sep 17 00:00:00 2001 From: astigsen Date: Tue, 6 Mar 2018 13:43:10 +0100 Subject: [PATCH] Removed backlink queries (for now) --- docs/tutorials/query-language.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/tutorials/query-language.md b/docs/tutorials/query-language.md index 3677ede0..57cb0b9a 100644 --- a/docs/tutorials/query-language.md +++ b/docs/tutorials/query-language.md @@ -95,16 +95,3 @@ Example: // Find contacts with friends above 21 in SF let teens = realm.objects('Contact').filtered('SUBQUERY(friends, $friend, $friend.age > 21 AND $friend.city = "SF").@count > 0'); ``` - -### Backlink queries - -Other objects can link to an object and you can query on that releationship using the `@links` and `@links.ClassName.PropertyName` syntax: - -Example: -```JS -// Find contacts with no incomming links -let lonely = realm.objects('Contact').filtered('@links.@count == 0'); - -// Find contacts where someone from SF has them as friends -realm.objects('Contact').filtered('@links.Contact.friends.city == "SF"'); -```