removeEmbeddedForeignKey (snapshot, embeddedSnapshot, relationship, json)
When serializing an embedded record, modify the property (in the json payload) that refers to the parent record (foreign key for relationship).
Serializing a belongsTo
relationship removes the property that refers to the parent record
Serializing a hasMany
relationship does not remove the property that refers to the parent record.
Parameters:
-
snapshot
DS.Snapshot
-
embeddedSnapshot
DS.Snapshot
-
relationship
Object
-
json
Object
Please login to continue.