简体   繁体   English

Arangodb:是否可以在Foxx中使用现有集合

[英]Arangodb: Is it possible to use an existing collection within Foxx

I am interested in created a FOXX application for Arango - but I want to use a collection I already have and will use in other ways. 我有兴趣为Arango创建FOXX应用程序-但我想使用已经拥有的并将以其他方式使用的集合。 From the interface and the documentation it seems that I need to create a new collection. 从界面和文档看来,我需要创建一个新集合。

Is there some work around where I can use an existing collection? 我可以在哪里使用现有的收藏集吗?

Yes, you can, you can skip creation of new collection when adding new fox service. 是的,可以,添加新的Fox服务时可以跳过创建新集合的操作。

And then use any collection in your DB, For instance 然后使用您数据库中的任何集合,例如

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

Here you can find collection methods https://docs.arangodb.com/Documents/DocumentMethods.html 在这里您可以找到收集方法https://docs.arangodb.com/Documents/DocumentMethods.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM