Added
-
Added missing AQL query tracking attributes to match HTTP API documentation (DE-1139)
The query tracking types now include all attributes supported by the ArangoDB query tracking endpoints:
slowStreamingQueryThreshold: Added toQueryTrackingOptions(optional) andQueryTrackingInfo(required)- Threshold in seconds for treating a streaming query as slow (when
streamoption istrue)
- Threshold in seconds for treating a streaming query as slow (when
modificationQuery: Added toQueryDescription(required)- Boolean indicating whether the query writes data (
true) or only reads (false)
- Boolean indicating whether the query writes data (
exitCode: Added toQueryDescription(optional)- Error code (
errorNum) indicating why the query failed, or0on success - Only present in slow queries (finished queries), not in running queries
- Error code (
-
Added missing options to
ExplainOptionstype forDatabase.explain()method (DE-1009)The
ExplainOptionstype now includes all options supported by the ArangoDB explain endpoint:fullCount: Calculate total documents as if LIMIT wasn't appliedprofile: Include query profiling information (0, 1, or 2)maxNodesPerCallstack: Control stack splitting thresholdmaxWarningCount: Limit the number of warnings returnedfailOnWarning: Throw exception on warnings instead of returning them
-
Added
trainingState,errorMessage, andsparsefor vector indexes (DE-1147)VectorIndexDescriptionnow reflects ArangoDB 3.12.9+ index responses: optional
trainingState(unusable,training,ingesting, orready) and optional
errorMessagewhen training or usability fails (for example, insufficient training data).
TheVectorIndexTrainingStatetype alias documents the allowed
trainingStatevalues.EnsureVectorIndexOptionsnow includes optionalsparse, aligned with the
vector index HTTP API so documents without the indexed vector field can be
omitted whensparseistrue.
Fixed
- Fixed incorrect handling of
maxPlansinQueryOptions. The driver now
supportsmaxNumberOfPlansand maps legacymaxPlanstomaxNumberOfPlans
when the latter is not provided. The driver always sendsoptions.maxNumberOfPlans
to the server. If both are provided,maxNumberOfPlanstakes precedence.
maxPlansis deprecated and will be removed in a future major release.
(#845)