From 4daad1b775d87537488aae8836502eb74b7adbb4 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 27 Aug 2025 16:48:08 +1200 Subject: [PATCH] Ignore relationships that are not available --- src/Appwrite/Utopia/Request/Filters/V20.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Utopia/Request/Filters/V20.php b/src/Appwrite/Utopia/Request/Filters/V20.php index 6ca6171eb9..2683d600ef 100644 --- a/src/Appwrite/Utopia/Request/Filters/V20.php +++ b/src/Appwrite/Utopia/Request/Filters/V20.php @@ -135,7 +135,10 @@ class V20 extends Filter $relationshipKeys = []; foreach ($attributes as $attr) { - if (($attr['type'] ?? null) !== Database::VAR_RELATIONSHIP) { + if ( + ($attr['type'] ?? null) !== Database::VAR_RELATIONSHIP || + $attr['status'] !== 'available' + ) { continue; }