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
{{ message }}
This repository was archived by the owner on Mar 4, 2019. It is now read-only.
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
The order option uses standard JavaScript object/array path notation for elements in JSON fields instead of the native Postgres traversers, making it consistent with JSON usage in criteria objects. Sort direction is also now case-insensitive.
Bulk insert can accommodate records with different key sets: [{field1: 'value1'}, {field2: 'value2'}] is valid assuming there are no NOT NULL constraints in play.
Empty array values are now handled properly in insert and update.