Search
How to search your database.
Search Tags
db.list({filter:() => e.tag == "TAG", limit:10})Parameter
About
Type
Required
options.filter
Filter function
Function
options.limit
Max results
Number
Search all Records by Content
db.getFromValue('query', limit)Parameter
About
Type
Required
query
Query to search for
String
limit
Max results
Number
Search Content
Convert content to String and return the result of String.search()
db.get("tag").search('query')This function is deprecated
Have Dubnium split the content by a character and then search the array.
db.get('tag').searchAsArray('query', 'splitBy')Parameter
About
Type
Required
splitBy
String to split the Record's content by. For example, \n for lines or " " for spaces. If not present, Dubnium will default to space.
String
Search Object Keys
db.get('tag').searchKeys('query')Parameter
About
Type
Required
query
The search query
String
Last updated
Was this helpful?