DataPack

Class to interact with data packs .

Constructor

new DataPack(params)

Interact with data packs

Parameters:
NameTypeDescription
paramsObject
Properties
NameTypeAttributesDefaultDescription
dataPacksstring | Array.<String>

the data packs you wish to load

indexFieldsArray.<string><optional>
@id, name, alternateName, languageCode

the fields you wish to index over

Methods

get(params)

Get something from the datapacks

Parameters:
NameTypeDescription
paramsObject
Properties
NameTypeDescription
fieldstring

the field to search on, e.g.: '@id'

valyestring

the string to search for

(async) load()

Load the data packs and index them