Thunder
Thunder is the collection of unstructured data that can be used to hold configurations and other data
Example usage:
await thunder.findOne('user_settings', { user_id: 2 })
modifyMany(name, filters, data) : any
method
Modify many records that match filter
modifyOne(name, filters, data) : any
method
Modify one record that match filter
modifyOrCreate(name, filters, data) : any
method
Modify one record that matches filter otherwise new record will be created with data
param
findOne(name, filters) : any
method
Find one record that matches the filters
find(name, filters) : any
method
Find many records that matches the filters
findOneOrInsert(name, filters, data) : any
method
Find one record that matches the filter, if record doesn't exist it will create new record with provided data
.
delete(name, filters) : any
method
Delete records that match the filter