MyGit

v0.12.0

balderdashy/waterline

版本发布时间: 2016-03-19 01:57:26

balderdashy/waterline最新发布版本:v0.11.6(2016-11-12 18:34:37)

Finally adds support for projections! :rocket: :star2: :metal:

You now have support for using .select() in both top level and association queries. Yeah it took until 2016 to get it added but we wanted to age it so it taste better.

User.find()
.select(['name', 'age'])
.populate('pets', { select: ['breed', 'name'] })
.exec(function(err, users) {});

The other big change is the ability to pass arbitrary data down to custom adapters. You have a few ways to do this:

First if you need to define custom values on an attribute for use with migrations for example you can add a meta key to an individual attribute and the values will be passed through when the schema is registered.

attributes: {
  name: {
    type: 'string',
    meta: {
      size: 256
    }
}

The other option is to pass meta values directly to a custom adapter function. Some examples are shown in #1325.

For a full roundup of changes view the updated Changelog.

相关地址:原始地址 下载(tar) 下载(zip)

查看:2016-03-19发行的版本