Arangodb:是否可以在 Foxx 中使用现有集合
Arangodb: Is it possible to use an existing collection within Foxx
我有兴趣为 Arango 创建一个 FOXX 应用程序 - 但我想使用我已经拥有的集合并将以其他方式使用。从界面和文档来看,我似乎需要创建一个新集合。
是否有一些解决方法可以使用现有的集合?
可以,您可以在添加新的 fox 服务时跳过创建新 collection。
然后在您的数据库中使用任何 collection,例如
var db = require('org/arangodb').db;
db.yourcollectionname.save({yourdocument});
在这里您可以找到 collection 方法
https://docs.arangodb.com/Documents/DocumentMethods.html
我有兴趣为 Arango 创建一个 FOXX 应用程序 - 但我想使用我已经拥有的集合并将以其他方式使用。从界面和文档来看,我似乎需要创建一个新集合。
是否有一些解决方法可以使用现有的集合?
可以,您可以在添加新的 fox 服务时跳过创建新 collection。
然后在您的数据库中使用任何 collection,例如
var db = require('org/arangodb').db;
db.yourcollectionname.save({yourdocument});
在这里您可以找到 collection 方法 https://docs.arangodb.com/Documents/DocumentMethods.html