Skip to content

Conversation

RonAmihai
Copy link

See:

  • Option docs in the Java driver: link
  • Option docs in the Golang driver: link

/// 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.
/// </summary>
public string ForceOneShardAttributeValue { get; set; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option doesn't appear in any documentation for the cursor API that I can find, are you able to find a reference for it?

As mentioned in the other PR, I wonder if you could subclass PostCursorOptions and add additional properties? I think JSON.NET serializer will include the additional properties on your subclass

Copy link
Author

@RonAmihai RonAmihai Oct 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option does not appear in ArangoDB's official REST API specification; however, as I mentioned above, it does appear in the Java and Golang driver docs. I can also link you to relevant ArangoDB developers who will confirm that.

As I mentioned in the other PR, the subclass approach works, so I can achieve what I've needed regarding that option regardless of that PR.

However, I think it's worth adding that option to the cursor option since it's a known ArangoDB option.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants