Function
inverseFor (name, store) Object public
Module:
@ember-data/model
Defined in ../packages/model/src/-private/model.js:1332
- name
- String
the name of the relationship
- store
- Store
- returns
- Object
the inverse relationship, or null
Find the relationship which is the inverse of the one asked for.
For example, if you define models like this:
```js {data-filename=app/models/post.js} import Model, { hasMany } from '@ember-data/model';
export default class PostModel extends Model {