Class OneToManyLink<EntityT, DeSerializersT, LinkedEntityApiT>

Represents a one to many relation for OData v4 entities. For OData v2 entities the Link is used to represent one to many relation. See Link for more information.

Type Parameters

Hierarchy (view full)

Constructors

Properties

_deSerializers: DeSerializersT

Dummy property to also include the deserializer type in the structure of the entity type.

_entity: EntityT

Dummy property whose type makes structurally identical entities distinguishable in TypeScript.

_fieldName: string
_linkedEntityApi: LinkedEntityApiT

List of selectables on the linked entity.

_skip: number
_top: number

Methods

  • Create a new link based on a given link.

    Returns this

    Newly created link.

  • Add order-by statements to the request.

    Parameters

    Returns this

    The request builder itself, to facilitate method chaining.

  • Skip number of entities.

    Parameters

    • skip: number

      Number of matching entities to skip. Useful for paging.

    Returns this

    The request builder itself, to facilitate method chaining.

  • Number of returned entities.

    Parameters

    • top: number

      Maximum number of entities to return in the response. Can be less, if less entities match the request.

    Returns this

    The request builder itself, to facilitate method chaining.

    Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.