-
Notifications
You must be signed in to change notification settings - Fork 568
Examples Todo
Add common uses cases or under-appreciated features that should have better examples in a future documentation update:
-
Using key/val pairs with
withRelated
andquery.columns
(https://github.com/tgriesser/bookshelf/issues/75#issuecomment-70918329) -
Omitting pivot attributes in JSON response (https://github.com/tgriesser/bookshelf/issues/588)
-
An example showing how a base model with global properties can be defined and other models can derive from it. I think this is a very common use case.
-
Ways to implement basic joins in bookshelf.
-
How to augment relation query (https://github.com/tgriesser/bookshelf/issues/601).
-
A pagination example
-
An example showing how to return a count of model matching certain criteria (https://github.com/tgriesser/bookshelf/issues/609)
-
Selecting and ordering by a JSON field