# Get the model definition from records

**URL:** <https://discuss.emberjs.com/t/get-the-model-definition-from-records/8055>\
**Category:** Ember Data\
**Created:** [May 22, 2015, 7:49am UTC](https://discuss.emberjs.com/t/get-the-model-definition-from-records/8055 "2015-05-22T07:49:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/henry/32/16850_2.png) [@Henry](https://discuss.emberjs.com/u/Henry)\
**Post date:** [May 22, 2015, 7:49am UTC](https://discuss.emberjs.com/t/get-the-model-definition-from-records/8055/1 "2015-05-22T07:49:59Z")

</div>

I would like to obtain the definition of any model passed to a component. As far as I know, you can get the model definition writing something like this `import user from "../models/user"` but, is there any way of taking directly from the records?

---

<div class="post-metadata">

**Author:** ![Henry](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/henry/32/16850_2.png) [@Henry](https://discuss.emberjs.com/u/Henry)\
**Post date:** [May 22, 2015, 9:09am UTC](https://discuss.emberjs.com/t/get-the-model-definition-from-records/8055/2 "2015-05-22T09:09:33Z")

</div>

I answer myself:

```
Ember.get(this.get('model.type'),'attributes');

```
