Foxx.queues 未定义

Foxx.queues is undefined

我正在尝试使用 arangodb 的作业队列功能。

var Foxx = require("org/arangodb/foxx"),
controller = new Foxx.Controller(applicationContext),
Repository = require("org/arangodb/foxx").Repository,
console = require("console"),
arangodb = require("org/arangodb");

var queue = Foxx.queues.create('my-queue');

我得到 "TypeError: Foxx.queues is undefined"

我正在使用 2.2.6 版本,但后来我升级到 2.5(假设这是一个版本问题)但同样的问题。 我必须单独安装吗?

正如 stj 在评论中解释的那样,您不需要单独安装 Foxx 队列。自 2.4 版以来,您默认拥有它们。

由于您使用的是 2.2.6 版,如果您想使用 Foxx 队列,则需要将 ArangoDB 更新到更高版本(至少 2.4)。