# Ember Data

**URL:** https://discuss.emberjs.com/c/ember-data/6.md?page=2

[Latest](https://discuss.emberjs.com/latest.md) · [Categories](https://discuss.emberjs.com/categories.md)

**Page:** 3

---

## [store.findAll() is not working](https://discuss.emberjs.com/t/store-findall-is-not-working/19016)

<div class="topic-metadata">

**Author:** [@hari\_s18](https://discuss.emberjs.com/u/hari_s18)\
**Replies:** 5\
**Last updated:** [July 23, 2021, 6:27pm UTC](https://discuss.emberjs.com/t/store-findall-is-not-working/19016 "2021-07-23T18:27:14Z")

</div>

My endpoint is http://localhost:8080/onlinefeedbacksystemFinal/questions I am looking to display the all the questions from by backend. The store.findAll() requests and gets the response from the endpoint succcessfully …

---

## [Excluding attributes sent to the server](https://discuss.emberjs.com/t/excluding-attributes-sent-to-the-server/15381)

<div class="topic-metadata">

**Author:** [@melriffe](https://discuss.emberjs.com/u/melriffe)\
**Replies:** 9\
**Last updated:** [July 22, 2021, 2:48pm UTC](https://discuss.emberjs.com/t/excluding-attributes-sent-to-the-server/15381 "2021-07-22T14:48:58Z")

</div>

I have a model that, for business reasons, has an attribute that contains a value from a global counter. This attribute needs to be displayed. Oh, some background: Ember 2.18 + Rails 5.2 API back-end w/jsonapi-resources…

---

## [Error: Assertion Failed: Attempting to inject an unknown injection: 'service:ajax'](https://discuss.emberjs.com/t/error-assertion-failed-attempting-to-inject-an-unknown-injection-service-ajax/18989)

<div class="topic-metadata">

**Author:** [@almokhtar](https://discuss.emberjs.com/u/almokhtar)\
**Replies:** 4\
**Last updated:** [July 19, 2021, 4:03pm UTC](https://discuss.emberjs.com/t/error-assertion-failed-attempting-to-inject-an-unknown-injection-service-ajax/18989 "2021-07-19T16:03:21Z")

</div>

am trying to make an ajax request following an old tutorial : ajax: service(), async authenticate(username, password) { let response = await this.ajax.post('/token', { headers: { 'Accept': 'application…

---

## [Problem with the belongsTo relationship for a controller](https://discuss.emberjs.com/t/problem-with-the-belongsto-relationship-for-a-controller/18922)

<div class="topic-metadata">

**Author:** [@Tanfa\_LDW](https://discuss.emberjs.com/u/Tanfa_LDW)\
**Replies:** 4\
**Last updated:** [June 16, 2021, 3:33pm UTC](https://discuss.emberjs.com/t/problem-with-the-belongsto-relationship-for-a-controller/18922 "2021-06-16T15:33:12Z")

</div>

I’m having a problem using the belongsTo relationship in my call model file. I want to have the file element in the call model point to a file and be able to access the elements present in the file model. The file elemen…

---

## [How to connect mySQL and emberJS framework to send and retrieve data](https://discuss.emberjs.com/t/how-to-connect-mysql-and-emberjs-framework-to-send-and-retrieve-data/18910)

<div class="topic-metadata">

**Author:** [@hari\_s18](https://discuss.emberjs.com/u/hari_s18)\
**Replies:** 2\
**Last updated:** [June 9, 2021, 2:09am UTC](https://discuss.emberjs.com/t/how-to-connect-mysql-and-emberjs-framework-to-send-and-retrieve-data/18910 "2021-06-09T02:09:48Z")

</div>

I am attempting to connect the db with emberJS framework as user’s answers and admin’s question are to be stored in DB and retrieve and show the admin the answers (yes, like feedback form). How can I do it?

---

## [How to load proxy relationships in Ember testing](https://discuss.emberjs.com/t/how-to-load-proxy-relationships-in-ember-testing/18899)

<div class="topic-metadata">

**Author:** [@sesquibel](https://discuss.emberjs.com/u/sesquibel)\
**Replies:** 2\
**Last updated:** [June 3, 2021, 11:36pm UTC](https://discuss.emberjs.com/t/how-to-load-proxy-relationships-in-ember-testing/18899 "2021-06-03T23:36:52Z")

</div>

I am trying to test whether a model gets hydrated with the appropriate data, but I am getting proxy objects back in regards to relationship models (belongsTo, hasMany) instead of the model itself. I have tried creating …

---

## [How to reload route after saving data?](https://discuss.emberjs.com/t/how-to-reload-route-after-saving-data/18786)

<div class="topic-metadata">

**Author:** [@kelvin](https://discuss.emberjs.com/u/kelvin)\
**Replies:** 3\
**Last updated:** [May 25, 2021, 8:43pm UTC](https://discuss.emberjs.com/t/how-to-reload-route-after-saving-data/18786 "2021-05-25T20:43:18Z")

</div>

I have this preparation/controller.js action: { ad.set('wfnum', i); ad.save().then( function () { return true; }, function () { if(ad.ge…

---

## [A case for evented models](https://discuss.emberjs.com/t/a-case-for-evented-models/18863)

<div class="topic-metadata">

**Author:** [@vihai](https://discuss.emberjs.com/u/vihai)\
**Replies:** 1\
**Last updated:** [May 24, 2021, 3:53pm UTC](https://discuss.emberjs.com/t/a-case-for-evented-models/18863 "2021-05-24T15:53:11Z")

</div>

Hello, I’ve read the discussion in: And I understand the ration beneath such decision. However I have this scenario that I don’t see how to properly implement without event handlers: Suppose some external event (e.g…

---

## [Search queries - dynamically reloading model](https://discuss.emberjs.com/t/search-queries-dynamically-reloading-model/18758)

<div class="topic-metadata">

**Author:** [@Dantel](https://discuss.emberjs.com/u/Dantel)\
**Replies:** 4\
**Last updated:** [May 10, 2021, 3:56pm UTC](https://discuss.emberjs.com/t/search-queries-dynamically-reloading-model/18758 "2021-05-10T15:56:28Z")

</div>

Hi, I have another conceptual question which is not really covered in the documentation. Or maybe it is just me not finding it or simply not understanding something. The use case is actually exactly what we find covere…

---

## [Wrong time on request body](https://discuss.emberjs.com/t/wrong-time-on-request-body/18752)

<div class="topic-metadata">

**Author:** [@kamillacrozara](https://discuss.emberjs.com/u/kamillacrozara)\
**Replies:** 3\
**Last updated:** [April 1, 2021, 6:19pm UTC](https://discuss.emberjs.com/t/wrong-time-on-request-body/18752 "2021-04-01T18:19:35Z")

</div>

Hey there! I am using Flatpicker to let users set time on horarioPartida and before calling .save() my object looks like this: But when I check the request payload the horarioPartida looks like this: What is setti…

---

## [Extracting data from a DS.RecordArray object for a graph](https://discuss.emberjs.com/t/extracting-data-from-a-ds-recordarray-object-for-a-graph/18746)

<div class="topic-metadata">

**Author:** [@Tanfa\_LDW](https://discuss.emberjs.com/u/Tanfa_LDW)\
**Replies:** 1\
**Last updated:** [March 29, 2021, 2:18pm UTC](https://discuss.emberjs.com/t/extracting-data-from-a-ds-recordarray-object-for-a-graph/18746 "2021-03-29T14:18:03Z")

</div>

Greetings, I’ve having to retrieve data from a MongoDB database that will be visualized in a graph. I’m able to fetch the data, but I don’t know how to extract the data from the DS.RecordArray object so that I can have a…

---

## [DS.PromiseManyArray problem with 0 to many relationship](https://discuss.emberjs.com/t/ds-promisemanyarray-problem-with-0-to-many-relationship/18742)

<div class="topic-metadata">

**Author:** [@gitanes](https://discuss.emberjs.com/u/gitanes)\
**Replies:** 0\
**Last updated:** [March 24, 2021, 5:54pm UTC](https://discuss.emberjs.com/t/ds-promisemanyarray-problem-with-0-to-many-relationship/18742 "2021-03-24T17:54:38Z")

</div>

Hello I have an assignment for a company interview. They asked me to build a website where you can ask questions with tags and answers. This is an urgent matter because I’m stuck and I should deploy the website on Friday…

---

## [Adding a delete row button from a Table](https://discuss.emberjs.com/t/adding-a-delete-row-button-from-a-table/18623)

<div class="topic-metadata">

**Author:** [@Jinx03](https://discuss.emberjs.com/u/Jinx03)\
**Replies:** 8\
**Last updated:** [March 23, 2021, 3:47pm UTC](https://discuss.emberjs.com/t/adding-a-delete-row-button-from-a-table/18623 "2021-03-23T15:47:40Z")

</div>

Hello so I kinda got thrust into the middle of EmberJS. I have worked a few tutorials but I am still struggling with something I feel like should be super simple. I am trying to add a delete row button for my table. Evey…

---

## [Handle 401 error](https://discuss.emberjs.com/t/handle-401-error/17051)

<div class="topic-metadata">

**Author:** [@scandinave](https://discuss.emberjs.com/u/scandinave)\
**Replies:** 8\
**Last updated:** [March 22, 2021, 4:46pm UTC](https://discuss.emberjs.com/t/handle-401-error/17051 "2021-03-22T16:46:25Z")

</div>

Hi, I try to used a JSON API back-end secured by keycloak. This back-end reponse with a 401 www-autenticate. The problem is that i’m unable to retrieve the status code of the error. I’ve tried to overwrite the adapter.h…

---

## [Restricting access to images](https://discuss.emberjs.com/t/restricting-access-to-images/18713)

<div class="topic-metadata">

**Author:** [@Dantel](https://discuss.emberjs.com/u/Dantel)\
**Replies:** 8\
**Last updated:** [March 20, 2021, 9:00am UTC](https://discuss.emberjs.com/t/restricting-access-to-images/18713 "2021-03-20T09:00:50Z")

</div>

Hi, I was in need for a new javascript based framework. Ember sounded cool and so I gave it a shot. I am liking it so far, but I have a question about “the ember way” of doing certain things. My app shall restrict acces…

---

## [EmbeddedRecordsMixin saving belongsTo](https://discuss.emberjs.com/t/embeddedrecordsmixin-saving-belongsto/18724)

<div class="topic-metadata">

**Author:** [@jimmysprinkles92](https://discuss.emberjs.com/u/jimmysprinkles92)\
**Replies:** 2\
**Last updated:** [March 19, 2021, 3:14pm UTC](https://discuss.emberjs.com/t/embeddedrecordsmixin-saving-belongsto/18724 "2021-03-19T15:14:25Z")

</div>

I know there’s some pending issues related to saving embedded relationships but I’m not 100% sure this case falls under the un-implemented changes. I have a parent model with a belongsTo relationship and there’s two dif…

---

## [Custom Serializer for "type"](https://discuss.emberjs.com/t/custom-serializer-for-type/18711)

<div class="topic-metadata">

**Author:** [@mroetheli](https://discuss.emberjs.com/u/mroetheli)\
**Replies:** 2\
**Last updated:** [March 17, 2021, 6:59pm UTC](https://discuss.emberjs.com/t/custom-serializer-for-type/18711 "2021-03-17T18:59:38Z")

</div>

Hi there I’ve read the guide for custom serializers Customizing Serializers - Ember Data - Ember Guides and I wanted to extend my application serializer with a specific format for the style info in the json-output: imp…

---

## [Routing is not working for large data from api](https://discuss.emberjs.com/t/routing-is-not-working-for-large-data-from-api/18702)

<div class="topic-metadata">

**Author:** [@Sahil\_Paudel](https://discuss.emberjs.com/u/Sahil_Paudel)\
**Replies:** 10\
**Last updated:** [March 15, 2021, 2:49pm UTC](https://discuss.emberjs.com/t/routing-is-not-working-for-large-data-from-api/18702 "2021-03-15T14:49:25Z")

</div>

Using "ember-data": "^3.5.0", "ember-cli": "~3.5.1", "ember-cli-app-version": "^3.2.0", "ember-cli-htmlbars": "^3.0.0", I have a link on the page that triggers an API when it is clicked if the response is small let say…

---

## [Creating multiple records](https://discuss.emberjs.com/t/creating-multiple-records/18694)

<div class="topic-metadata">

**Author:** [@Tanfa\_LDW](https://discuss.emberjs.com/u/Tanfa_LDW)\
**Replies:** 1\
**Last updated:** [March 6, 2021, 7:33pm UTC](https://discuss.emberjs.com/t/creating-multiple-records/18694 "2021-03-06T19:33:10Z")

</div>

I’m wondering if there’s a way to create multiple records in Ember. For my application, I’ll need to create several thousand records.

---

## [Ember data without Ember](https://discuss.emberjs.com/t/ember-data-without-ember/18565)

<div class="topic-metadata">

**Author:** [@Misoft](https://discuss.emberjs.com/u/Misoft)\
**Replies:** 2\
**Last updated:** [March 5, 2021, 10:47pm UTC](https://discuss.emberjs.com/t/ember-data-without-ember/18565 "2021-03-05T22:47:50Z")

</div>

Hello! Is it possible to use Ember data without Ember and Ember cli. Kind of: import Store from '@ember-data/store'; class MyStore extends Store { constructor() { super(...arguments); this.adapter = ... adap…

---

## [How to properlly set create nested resources with Ember Data?](https://discuss.emberjs.com/t/how-to-properlly-set-create-nested-resources-with-ember-data/18632)

<div class="topic-metadata">

**Author:** [@jramiresbrito](https://discuss.emberjs.com/u/jramiresbrito)\
**Replies:** 1\
**Last updated:** [February 22, 2021, 7:37pm UTC](https://discuss.emberjs.com/t/how-to-properlly-set-create-nested-resources-with-ember-data/18632 "2021-02-22T19:37:05Z")

</div>

Hi guys, I’m learning Ember and got stuck on how to create nested resources. My models are Comment and Event having a One-to-Many relationship. Pretty simple. The thing is, my form to add new comments associated to a s…

---

## [Sorting \<li\>s from the highest to lowest](https://discuss.emberjs.com/t/sorting-li-s-from-the-highest-to-lowest/18600)

<div class="topic-metadata">

**Author:** [@GuzlejM](https://discuss.emberjs.com/u/GuzlejM)\
**Replies:** 4\
**Last updated:** [February 20, 2021, 4:23pm UTC](https://discuss.emberjs.com/t/sorting-li-s-from-the-highest-to-lowest/18600 "2021-02-20T16:23:04Z")

</div>

Hello, I have problem to google ANYTHING helpfull about sorting lists. I need with the highest random number to be on the top of the list. Should i do it in template where I loop trough array of objects and list the …

---

## [CORS error when trying to retrieve data from port 8080 using JSONAPIAdapter](https://discuss.emberjs.com/t/cors-error-when-trying-to-retrieve-data-from-port-8080-using-jsonapiadapter/18625)

<div class="topic-metadata">

**Author:** [@Tanfa\_LDW](https://discuss.emberjs.com/u/Tanfa_LDW)\
**Replies:** 3\
**Last updated:** [February 18, 2021, 8:31pm UTC](https://discuss.emberjs.com/t/cors-error-when-trying-to-retrieve-data-from-port-8080-using-jsonapiadapter/18625 "2021-02-18T20:31:03Z")

</div>

I’m trying to retrieve JSON data from an app running on localhost:8080. However, I’m running into an issue it’s not allowing me to make that network request due to the Cross-Origin Request being blocked. I used the comma…

---

## [How to create view dynamic form nest item](https://discuss.emberjs.com/t/how-to-create-view-dynamic-form-nest-item/18602)

<div class="topic-metadata">

**Author:** [@kustay](https://discuss.emberjs.com/u/kustay)\
**Replies:** 0\
**Last updated:** [February 9, 2021, 5:01pm UTC](https://discuss.emberjs.com/t/how-to-create-view-dynamic-form-nest-item/18602 "2021-02-09T17:01:30Z")

</div>

---

## [Axios, GraphQL and EmberJS](https://discuss.emberjs.com/t/axios-graphql-and-emberjs/18500)

<div class="topic-metadata">

**Author:** [@gitanes](https://discuss.emberjs.com/u/gitanes)\
**Replies:** 1\
**Last updated:** [January 12, 2021, 3:06pm UTC](https://discuss.emberjs.com/t/axios-graphql-and-emberjs/18500 "2021-01-12T15:06:03Z")

</div>

Hello, I used to do like the ember tutorial did: have data generated in a route file. Now I have to use adapters and serialisers but I have to make requests to a GraphQL backend. I don’t understand how it works. Can some…

---

## [Expected Error format of API response](https://discuss.emberjs.com/t/expected-error-format-of-api-response/18441)

<div class="topic-metadata">

**Author:** [@ChrizzDF](https://discuss.emberjs.com/u/ChrizzDF)\
**Replies:** 2\
**Last updated:** [January 3, 2021, 1:13pm UTC](https://discuss.emberjs.com/t/expected-error-format-of-api-response/18441 "2021-01-03T13:13:42Z")

</div>

I’m not able to send the API errors in a format that Ember/EmberData (both v3.22.0) and is able to consume for model errors to display them in templates. I’m using RESTAdapter and RESTSerializer. My product model looks …

---

## [How to paginate metadata from response header?](https://discuss.emberjs.com/t/how-to-paginate-metadata-from-response-header/12075)

<div class="topic-metadata">

**Author:** [@DylanGuedes](https://discuss.emberjs.com/u/DylanGuedes)\
**Replies:** 1\
**Last updated:** [December 9, 2016, 9:44am UTC](https://discuss.emberjs.com/t/how-to-paginate-metadata-from-response-header/12075 "2016-12-09T09:44:35Z")

</div>

So, how do I paginate response that put metadata on the header? Every ember addon that I checked uses metadata (like ‘currentPage’, ‘totalPages’, etc) on the response body. Any advice? Thank you!

---

## [\[SOLVED\] Ember data sending requests from my computer browser instead of its own machine?](https://discuss.emberjs.com/t/solved-ember-data-sending-requests-from-my-computer-browser-instead-of-its-own-machine/18471)

<div class="topic-metadata">

**Author:** [@DylanGuedes](https://discuss.emberjs.com/u/DylanGuedes)\
**Replies:** 2\
**Last updated:** [January 3, 2021, 12:35am UTC](https://discuss.emberjs.com/t/solved-ember-data-sending-requests-from-my-computer-browser-instead-of-its-own-machine/18471 "2021-01-03T00:35:19Z")

</div>

Hello! I have the following scenario: I generated an ember build with environment=prod, and generated a docker Nginx image that serves this generated build. It uses backend-host as the API host (defined in environment.…

---

## [TypeError: Cannot read property 'type' of undefined when using findAll](https://discuss.emberjs.com/t/typeerror-cannot-read-property-type-of-undefined-when-using-findall/18432)

<div class="topic-metadata">

**Author:** [@rahulsphd](https://discuss.emberjs.com/u/rahulsphd)\
**Replies:** 3\
**Last updated:** [December 17, 2020, 4:06pm UTC](https://discuss.emberjs.com/t/typeerror-cannot-read-property-type-of-undefined-when-using-findall/18432 "2020-12-17T16:06:34Z")

</div>

is anybody know when this error comes? in my case when is use findall, this.store.findAll('user/auth').then((response) =\> { console.log(response); }).catch((err) =\> { console.log(err); }); Output TypeError…

---

## [How did the tutorial get its data as JSON:API?](https://discuss.emberjs.com/t/how-did-the-tutorial-get-its-data-as-json-api/18261)

<div class="topic-metadata">

**Author:** [@nojr](https://discuss.emberjs.com/u/nojr)\
**Replies:** 10\
**Last updated:** [October 14, 2020, 5:54pm UTC](https://discuss.emberjs.com/t/how-did-the-tutorial-get-its-data-as-json-api/18261 "2020-10-14T17:54:33Z")

</div>

I’m trying to build a pet project of that uses data from somewhere. I have basically arrays of objects, which are related to another entity. I would prefer to not deploy a database because the data is uniform and does no…

[Previous page](https://discuss.emberjs.com/c/ember-data/6.md?page=1)

[Next page](https://discuss.emberjs.com/c/ember-data/6.md?page=3)
