You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've split the BaseModel out into it's own repo, which makes it a more general tool outside of hapi applications. We're now exclusively using es6 classes instead of using the ampersand-class-extend hack.
Breaking changes
BaseModel has moved into it's own package mongo-models. It is also referred to as MongoModels instead of BaseModel.
mongo-models is a new peerDepdendency you'll need to include in your application's package.json.
BaseModel.extend(...) is gone. Simply extend with es6 class Customer extends MongoModels {}
The _collection property has been renamed to collection. Ex: Customer._collection = 'customers'; will now be Customer.collection = 'customers';.
BaseModel.connect(options, callback) arguments have changed to MongoModels.connect(uri, options, callback)
The options passed to the plugin have a minor change. The url property is now uri.
The text was updated successfully, but these errors were encountered:
General
We've split the
BaseModel
out into it's own repo, which makes it a more general tool outside of hapi applications. We're now exclusively using es6 classes instead of using theampersand-class-extend
hack.Breaking changes
BaseModel
has moved into it's own packagemongo-models
. It is also referred to asMongoModels
instead ofBaseModel
.mongo-models
is a newpeerDepdendency
you'll need to include in your application'spackage.json
.BaseModel.extend(...)
is gone. Simply extend with es6class Customer extends MongoModels {}
_collection
property has been renamed tocollection
. Ex:Customer._collection = 'customers';
will now beCustomer.collection = 'customers';
.BaseModel.connect(options, callback)
arguments have changed toMongoModels.connect(uri, options, callback)
url
property is nowuri
.The text was updated successfully, but these errors were encountered: