bookshelf-relationships
Bookshelf currently doesn't have a way to list relationships.
Install
npm install bookshelf-relationships --save
Then add this to where you are building your bookshelf object:
var bookshelf = knex;bookshelf;
Usage
Now you can add you relationship functions to a relationships like below. They will also get added to the model directly so don't worry all code and plug-ins will still work.
var Post = bookshelfModel;
Now you will be able to access the function names via model.relationships like so:
return Post;