The entity type of the target resource
Follows a resource relationship based on its rel type
The relationship type, must be a key defined in the entity links
Optionalvariables: LinkVariablesthe template variables
Returns a new ResourceRelation instance representing the followed relationship
Fetches the target resource state.
Resolves all intermediate relationships and performs GET on the target.
OptionalrequestOptions: GetRequestOptionsOptional request configuration
A Promise resolving to the target resource state
Sends a PATCH request to the target resource.
Resolves all intermediate relationships and performs PATCH on the target.
Defaults to application/json content-type.
Request options including data payload and headers
A Promise resolving to the updated resource state
Sends a POST request to the target resource.
Resolves all intermediate relationships and performs POST on the target.
Supports request deduplication via postOptions.dedup.
Request options including data payload and headers
OptionalpostOptions: { dedup?: boolean }Additional options (e.g., dedup: true)
A Promise resolving to the response state
Enables Prefer transclude hint when resolving links via GET.
Enables prefetching of the terminal linked resource state.
Sends a PUT request to the target resource.
Resolves all intermediate relationships and performs PUT on the target.
Defaults to application/json content-type.
Request options including complete data payload
A Promise resolving to the replaced resource state
Uses HEAD requests for link discovery on each hop.
Represents a deferred resource relationship for chained HATEOAS navigation.
ResourceRelation enables lazy, chainable navigation through HATEOAS links without immediately fetching intermediate resources. This is useful for building navigation paths that can be executed as a single operation.
Example: Chained navigation
See