belongsToMany(Tag) } }) const Tag = bookshelf.model('Tag', { tableName: 'tags' }) new User({id: 1}).fetch({withRelated: ['posts.tags']}).then((user) ...
確定! 回上一頁