DS.JSONSerializer#extractPolymorphicRelationship()

extractPolymorphicRelationship (relationshipModelName, relationshipHash, relationshipOptions) Object

Defined in addon/serializers/json.js:637

Returns a polymorphic relationship formatted as a JSON-API "relationship object".

http://jsonapi.org/format/#document-resource-object-relationships

relationshipOptions is a hash which contains more information about the polymorphic relationship which should be extracted: - resourceHash complete hash of the resource the relationship should be extracted from - relationshipKey key under which the value for the relationship is extracted from the resourceHash - relationshipMeta meta information about the relationship

Parameters:

relationshipModelName Object
relationshipHash Object
relationshipOptions Object

Returns:

Object
doc_EmberJs
2016-11-30 16:49:49
Comments
Leave a Comment

Please login to continue.