trailpack-waterline
Loads Application Models (in api/models
) into the Waterline ORM; Integrates with trailpack-router to
generate Footprints for routes.
Usage
Configure
// config/main.jsmoduleexports = // ... packs:
Query
// api/services/BirthdayService.jsmoduleexports = /** * Finds people with the given birthday. * @return Promise * @example { * name: 'Ludwig Beethoven', * birthday: Sun Dec 16 1770 00:00:00 GMT-0500 (EST), * favoriteColors: [ * { name: 'yellow', hex: 'ffff00' }, * { name: 'black', hex: '000000' } * ] * } */ { return thisormPerson }
Contributing
We love contributions! Please check out our Contributor's Guide for more information on how our projects are organized and how to get started.