arangodb / arangojs

The official ArangoDB JavaScript driver.
https://arangodb.github.io/arangojs
Apache License 2.0
601 stars 107 forks source link

inBackground option not available for ensureIndex #734

Closed radicaled closed 3 years ago

radicaled commented 3 years ago

It seems that ArangoDB's inBackground option for ensureIndex (see: https://www.arangodb.com/docs/stable/indexing-index-basics.html#creating-indexes-in-background) is not available via arangojs.

Or, is it actually available and this is just a bug with the available typins for arangojs?

pluma commented 3 years ago

The parameter is undocumented for the HTTP API. I've asked for clarification whether this is an omission or intentional.

radicaled commented 3 years ago

Interesting. I just assumed that arangosh was calling the HTTP API under the hood, so anything valid there was valid in the HTTP API.

Anyway, for reference, the other drivers do implement inBackground, so maybe the HTTP documents are out of date.