Skip to content

Commit cd5bab2

Browse files
authored
Create setup.js
Setup instructions for the Foxx Service
1 parent e870016 commit cd5bab2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

foxx-service/setup.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const {db} = require('@arangodb');
2+
3+
const collections = [
4+
'hooks_svn'
5+
];
6+
7+
for (const colName of collections)
8+
{
9+
if (!db._collection(colName)) {
10+
db._createDocumentCollection(colName);
11+
}
12+
}

0 commit comments

Comments
 (0)