From 6c5a6b57b98ec79261053c3fc30547aefcd75f6c Mon Sep 17 00:00:00 2001 From: Ron Amihai Date: Sun, 5 Oct 2025 12:52:07 +0300 Subject: [PATCH] PostCursorOptions - ForceOneShardAttributeValue Option --- .../CursorApi/Models/PostCursorOptions.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arangodb-net-standard/CursorApi/Models/PostCursorOptions.cs b/arangodb-net-standard/CursorApi/Models/PostCursorOptions.cs index 19f4bf20..45b9267d 100644 --- a/arangodb-net-standard/CursorApi/Models/PostCursorOptions.cs +++ b/arangodb-net-standard/CursorApi/Models/PostCursorOptions.cs @@ -119,5 +119,14 @@ public class PostCursorOptions /// This feature is only available in the Enterprise Edition. /// public bool? SkipInaccessibleCollections { get; set; } + + /// + /// This query option can be used in complex queries in case the query optimizer cannot + /// automatically detect that the query can be limited to only a single DBServer (e.g., in a + /// disjoint smart graph case). Set this to the shard key value that should be used to force + /// execution on one shard. If set incorrectly (i.e., a wrong shard key value), the query may + /// be shipped to the wrong DBServer and return no results (empty result set). Use at your own risk. + /// + public string ForceOneShardAttributeValue { get; set; } } }