# Cannot Access All Object Data from Store

**URL:** <https://discuss.emberjs.com/t/cannot-access-all-object-data-from-store/11490>\
**Category:** Ember Data\
**Created:** [August 30, 2016, 1:28pm UTC](https://discuss.emberjs.com/t/cannot-access-all-object-data-from-store/11490 "2016-08-30T13:28:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holmes89](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/holmes89/32/12551_2.png) [@Holmes89](https://discuss.emberjs.com/u/Holmes89)\
**Post date:** [August 30, 2016, 1:28pm UTC](https://discuss.emberjs.com/t/cannot-access-all-object-data-from-store/11490/1 "2016-08-30T13:28:28Z")

</div>

I’m new to Ember so please forgive my ignorance. I am working on a search page where I have a route that accepts a search param and is passed to a query:

```
  model(param){
    return this.get('store').query("search-result", { filter: {"searchTerm": param["term"]}});
  }

```

When on the template when I try to load the ‘displayName’ of the result nothing appears. However when I call ‘content’ which is the other attribute of the object the content renders. Why would this be?

I am using a JSONAPI adapter with a valid (I think) JSONAPI. Here is an example incoming result:

```
{"data":[{"type":"search-results",
"id":"57a4a478a69a6d457a4b7bb7",
"attributes":{"content":"blah",
"displayName":"foo",
"searchTerm":"bar"},
"relationships":{},
"links":{"self":"http://localhost:8080/api/search-results/57a4a478a69a6d457a4b7bb7"}}]
}

```

Any direction would be great thanks!

---

<div class="post-metadata">

**Author:** ![Holmes89](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/holmes89/32/12551_2.png) [@Holmes89](https://discuss.emberjs.com/u/Holmes89)\
**Post date:** [August 30, 2016, 3:10pm UTC](https://discuss.emberjs.com/t/cannot-access-all-object-data-from-store/11490/2 "2016-08-30T15:10:51Z")

</div>

Just to follow up on this. I changed content to searchContent because I thought it would be a conflict (from what I could find online). I have also added a serializer. Now I don’t see anything 🙂 which is progress (I think) because I think I was overriding the content attribute with my object.

However now my objects have nothing but ids.

---

<div class="post-metadata">

**Author:** ![Holmes89](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/holmes89/32/12551_2.png) [@Holmes89](https://discuss.emberjs.com/u/Holmes89)\
**Post date:** [August 30, 2016, 4:14pm UTC](https://discuss.emberjs.com/t/cannot-access-all-object-data-from-store/11490/3 "2016-08-30T16:14:57Z")

</div>

I solved the problem by creating a serializer with the following method

```
 keyForAttribute: function(attr) {
        return attr;
    }

```

The problem was I was using camel case and Ember expected it to be dashed. So I overrode the seralizer to leave it alone since it was coming in as camel case.
