Skip to main content

Pull

Pull Method

Table Of Pull Method

Parameters

  • table (table name that you want to pull from)
  • array (the key name of the array you want to pull your value from it)
  • value (the value you want to pull from the array stored in the key name)
  • all (boolean option to pull all values that equals to the provided value) (OPTIONAL)
pull(table, array, value, all)

Example Usage

await db.pull("my_table", "fruits", "banana");
// -> pulls FIRST 'banana' from 'fruits' in 'my_table'
await db.pull("my_table", "fruits", "banana", true);
// -> pulls ALL 'banana' from 'fruits' in 'my_table'

Returned Data

Returns final stored array

[]