This repository has been archived by the owner on Mar 4, 2019. It is now read-only.
v4.6.0
Massive now composes database APIs more intelligently. Now you can have a companies
table and a db/companies
script directory, and use both! db.companies
will be a table with the usual set of query and persistence functions, but it's also a namespace for your scripts and you can db.companies.doSomethingComplicated()
.
There are only a couple of scenarios that won't work with this:
- if a script or function would overwrite a default API function (like
companies.findOne
) - if a script and a function resolve to the same path
In both cases, you'll get an exception on spinup.