Closed gaurav-quasar closed 1 year ago
Thanks @pluma4345 for looking into it. I'll use it with type assertion now like below:
query(query: AqlQuery): Promise<ArrayCursor> { const queryOptions = <QueryOptions> {count: true, fullCount: true, cache: false, ForceOneShardAttributeValue: true}; return this.db.query(query, queryOptions); }
@gaurav-quasar We have decided not to implement this option in most drivers as it makes it very easy to misconfigure ArangoDB by using it and it was implemented in ArangoDB for internal use only and is therefore considered experimental.
Looks like this option was released without documentation but has been picked up by some other drivers. For the time being you can add it in TypeScript to the query options using type assertions. In JavaScript it already works as there's no run-time validation.