Skip to content

Commit

Permalink
feat(core): Find by id support
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBGod committed Nov 25, 2017
1 parent 16954b1 commit 3ff8ba3
Show file tree
Hide file tree
Showing 3 changed files with 5,856 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
[![MIT license][license-image]][license-url]
[![Gitter Chat](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/loopback-include-through-mixin/Lobby)

##Features
## Features

- include though model properties with queries
- setup default bahavior
- use as mixin

##Installation
## Installation

```bash
npm install loopback-include-through-mixin --save
```

##How to use
## How to use

Add the mixins property to your server/model-config.json like the following:

Expand Down Expand Up @@ -146,7 +146,7 @@ Example of Through Model:
}
```

##Options
## Options

| option | type | description | required |
| ------ | ---- | ----------- | -------- |
Expand All @@ -158,7 +158,7 @@ Example of Through Model:


- By setting relations in model definition it will return the though model for the specified relations by default
- By passing **includeThrough** in you query filter it will ov erride default **fields**
- By passing **includeThrough** in you query filter it will override default **fields**

## License

Expand Down
Loading

0 comments on commit 3ff8ba3

Please sign in to comment.