createCollection

createCollection → DynamicCollection

Create an instance of DynamicCollection that uses established connection.

Parameters:

  • connection: object - Connection object created with `createConnection()`
  • Model: object - The Model constructor to use for this collection

Returns:

DynamicCollection - Return the created DynamicCollection instance