MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / extractRelationship

Method extractRelationship

app/serializers/application.js:12–18  ·  view source on GitHub ↗
(relationship)

Source from the content-addressed store, hash-verified

10 }
11
12 extractRelationship(relationship) {
13 // for some reason we only need to update the id to lowercase when it's an object relationship and not an array 🤷
14 if (relationship?.data?.id) {
15 relationship.data.id = relationship.data.id.toLowerCase();
16 }
17 return super.extractRelationship(relationship);
18 }
19
20 normalizeFindRecordResponse(store, primaryModelClass, payload, id) {
21 let normalizedDocument = super.normalizeFindRecordResponse(...arguments);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected