【问题标题】:Arangodb: Is it possible to use an existing collection within FoxxArangodb:是否可以在 Foxx 中使用现有集合
【发布时间】:2016-02-09 16:06:57
【问题描述】:

我有兴趣为 Arango 创建一个 FOXX 应用程序 - 但我想使用我已经拥有并将以其他方式使用的集合。从界面和文档看来,我需要创建一个新集合。

是否有一些解决方法可以让我使用现有的集合?

【问题讨论】:

    标签: arangodb foxx


    【解决方案1】:

    可以,添加新的狐狸服务时可以跳过创建新集合。

    然后使用数据库中的任何集合,例如

    var db = require('org/arangodb').db;
    db.yourcollectionname.save({yourdocument});
    

    这里你可以找到收集方法 https://docs.arangodb.com/Documents/DocumentMethods.html

    【讨论】:

      猜你喜欢
      • 2018-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多