-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
24 lines (23 loc) · 1.12 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const CreateNGramSearchIndex = require("./FQL/Index/CreateNGramSearchIndex");
const NGramGenerator = require("./FQL/String/NGramGenerator");
const SelectDeep = require("./FQL/Document/SelectDeep");
const Characters = require("./FQL/String/Characters");
const StringPrefixGenerator = require("./FQL/String/StringPrefixGenerator");
const CreatePrefixSearchIndex = require("./FQL/Index/CreatePrefixSearchIndex");
const BulkCreate = require("./FQL/Document/BulkCreate");
const MultiMatch = require("./FQL/Index/MultiMatch");
const createPrefixSearchResources = require("./scripts/createPrefixSearchResources");
module.exports = (query) => {
if (!query) throw "A faunadb.query object is required.";
return {
CreateNGramSearchIndex: CreateNGramSearchIndex(query),
NGramGenerator: NGramGenerator(query),
SelectDeep: SelectDeep(query),
Characters: Characters(query),
StringPrefixGenerator: StringPrefixGenerator(query),
CreatePrefixSearchIndex: CreatePrefixSearchIndex(query),
BulkCreate: BulkCreate(query),
MultiMatch: MultiMatch(query),
createPrefixSearchResources: createPrefixSearchResources(query),
};
};