{"repo":"valiulab/objectionjs-relationship","free":true,"listed":false,"github":"https://github.com/valiulab/objectionjs-relationship","clone":"git clone https://github.com/valiulab/objectionjs-relationship.git","description":"ObjectionJs Relationship facade to make relationship mapper easier","language":"TypeScript","stars":10,"topics":["objectionjs","relationships","typescript","framework","nodejs","orm"],"license":"MIT","category":"databases-storage","readme_excerpt":"🚀 Relation maker for Objection.js This plugin provide a way to create relationship objects between Objection.js models. Doc For more documentation, you can view the Github page of this repository. Installation NPM Yarn Usage Basic Use Chaining Relationships Options IObjectionModelRelationshipAddConfig: This interface are the option that you can send to the add function and override the relation fields. These options can be provided when instantiating the plugin. Example 1 Example 2 The same can be done with through relationship. Read the IObjectionModelRelationshipAddConfig interface. Debugger helper You can send a options object to the getRelationships , witch one of the props is log This was created for the purpose of testing. Log param can be a boolean or a function that will get an IObjectionModelRelationship as a parameter to do whatever the function wants to do with the data, like print with a custom logger or something. The terminal will show (console.log as default) : Tests Run the tests from the root directory: Contributing & Development Contributing Found a bug or want to suggest something? Take a look first on the current and closed issues. If it is something new, please submit an issue. Develop It will be awesome if you can help us evolve objectionjs-relationship . Want to help? 1. Fork it. 2. npm install . 3. Hack away. 4. Run the tests: npm test . 5. Create a Pull Request. License This project is licensed under the MIT License - see the LICENSE file for details","default_branch":null,"files":null,"tree":[],"storefront":"/r/valiulab","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/valiulab/objectionjs-relationship/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}