UNPKG
foxxy
Version:
latest (0.6.20)
0.6.20
0.6.18
0.6.17
0.6.16
0.6.15
0.6.14
0.6.13
0.6.12
0.6.11
0.6.10
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.65
0.5.64
0.5.63
0.5.62
0.5.61
0.5.60
0.5.59
0.5.58
0.5.57
0.5.56
0.5.55
0.5.54
0.5.53
0.5.52
0.5.51
0.5.50
0.5.49
0.5.48
0.5.47
0.5.46
0.5.45
0.5.44
0.5.43
0.5.42
0.5.41
0.5.40
0.5.39
0.5.38
0.5.37
0.5.36
0.5.35
0.5.34
0.5.33
0.5.32
0.5.31
0.5.30
0.5.29
0.5.28
0.5.27
0.5.26
0.5.25
0.5.24
0.5.23
0.5.21
0.5.20
0.5.19
0.5.18
0.5.17
0.5.16
0.5.15
0.5.14
0.5.13
0.5.12
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
Foxx framework based on RiotJS + ArangoDB/Foxx
foxxy.ovh
solisoft/foxxy
foxxy
/
templates
/
basic
/
foxx
/
widget
/
APP
/
scripts
/
setup.js
13 lines
(10 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'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'
] });