UNPKG

foxx-framework

Version:

Foxx framework based on RiotJS + ArangoDB/Foxx

13 lines (10 loc) 258 B
'use strict'; const db = require('@arangodb').db; const collection = '@{{objects}}'; if (!db._collection(collection)) { db._createDocumentCollection(collection); } db._collection("@{{objects}}").ensureIndex({ type: 'fulltext', fields: ['search'] });