{"id":19020225,"url":"https://github.com/trailsjs/trailpack-waterline","last_synced_at":"2025-04-23T05:24:25.149Z","repository":{"id":57378875,"uuid":"46914836","full_name":"trailsjs/trailpack-waterline","owner":"trailsjs","description":":package: Waterline.js Trailpack","archived":false,"fork":false,"pushed_at":"2017-11-19T19:41:31.000Z","size":91,"stargazers_count":8,"open_issues_count":6,"forks_count":9,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-13T05:35:00.305Z","etag":null,"topics":["orm","trailpack","trails","waterline"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trailsjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-26T08:50:31.000Z","updated_at":"2023-11-03T17:12:04.000Z","dependencies_parsed_at":"2022-09-02T20:21:50.425Z","dependency_job_id":null,"html_url":"https://github.com/trailsjs/trailpack-waterline","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-waterline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-waterline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-waterline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailsjs%2Ftrailpack-waterline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailsjs","download_url":"https://codeload.github.com/trailsjs/trailpack-waterline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250375087,"owners_count":21420054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["orm","trailpack","trails","waterline"],"created_at":"2024-11-08T20:16:11.603Z","updated_at":"2025-04-23T05:24:25.106Z","avatar_url":"https://github.com/trailsjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trailpack-waterline\n\n[![Gitter][gitter-image]][gitter-url]\n[![NPM version][npm-image]][npm-url]\n[![Build status][ci-image]][ci-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n[![Code Climate][codeclimate-image]][codeclimate-url]\n\nLoads Application Models (in `api/models`) into the Waterline ORM; Integrates with [trailpack-router](https://github.com/trailsjs/trailpack-router) to\ngenerate Footprints for routes.\n\n## Usage\n\n### Configure\n\n```js\n// config/main.js\nmodule.exports = {\n  // ...\n  packs: [\n    require('trailpack-waterline')\n  ]\n}\n```\n\n### Query\n\n```js\n// api/services/BirthdayService.js\nmodule.exports = {\n  /**\n   * Finds people with the given birthday.\n   * @return Promise\n   * @example {\n   *    name: 'Ludwig Beethoven',\n   *    birthday: Sun Dec 16 1770 00:00:00 GMT-0500 (EST),\n   *    favoriteColors: [\n   *      { name: 'yellow', hex: 'ffff00' },\n   *      { name: 'black', hex: '000000' }\n   *     ]\n   * }\n   */\n  findPeopleWithBirthday (birthday) {\n    return this.orm.Person.find({ birthday: birthday })\n      .populate('favoriteColors')\n  }\n}\n```\n\n## Contributing\nWe love contributions! Please check out our [Contributor's Guide](https://github.com/trailsjs/trails/blob/master/CONTRIBUTING.md) for more\ninformation on how our projects are organized and how to get started.\n\n\n## License\n[MIT](https://github.com/trailsjs/trailpack-waterline/blob/master/LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/trailpack-waterline.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/trailpack-waterline\n[ci-image]: https://img.shields.io/travis/trailsjs/trailpack-waterline/master.svg?style=flat-square\n[ci-url]: https://travis-ci.org/trailsjs/trailpack-waterline\n[daviddm-image]: http://img.shields.io/david/trailsjs/trailpack-waterline.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/trailsjs/trailpack-waterline\n[codeclimate-image]: https://img.shields.io/codeclimate/github/trailsjs/trailpack-waterline.svg?style=flat-square\n[codeclimate-url]: https://codeclimate.com/github/trailsjs/trailpack-waterline\n[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square\n[gitter-url]: https://gitter.im/trailsjs/trails\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailsjs%2Ftrailpack-waterline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailsjs%2Ftrailpack-waterline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailsjs%2Ftrailpack-waterline/lists"}