Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateRequestBuilder<EntityT>

Create OData request to create an entity.

Type parameters

  • EntityT: Entity

    Type of the entity to be created

Hierarchy

  • MethodRequestBuilderBase<ODataCreateRequestConfig<EntityT>>
    • CreateRequestBuilder

Implements

  • EntityIdentifiable<EntityT>

Index

Constructors

constructor

  • new CreateRequestBuilder(_entityConstructor: Constructable<EntityT>, _entity: EntityT): CreateRequestBuilder

Properties

Readonly _entity

_entity: EntityT

Entity to be created

Readonly _entityConstructor

_entityConstructor: Constructable<EntityT>

Constructor type of the entity to be created

requestConfig

requestConfig: ODataCreateRequestConfig<EntityT>

Request configuration to initialize with

Accessors

entity

  • get entity(): EntityT

Methods

asChildOf

  • asChildOf<ParentEntityT>(parentEntity: ParentEntityT, linkField: Link<ParentEntityT, EntityT>): this
  • Specifies the parent of the entity to create.

    Type parameters

    Parameters

    • parentEntity: ParentEntityT

      Parent of the entity to create

    • linkField: Link<ParentEntityT, EntityT>

      Static representation of the navigation property that navigates from the parent entity to the child entity

    Returns this

    The entity itself, to facilitate method chaining

build

execute

prepare

  • prepare(): this

relativeUrl

  • relativeUrl(): string

url

withCustomHeaders

  • withCustomHeaders(headers: MapType<string>): this

withCustomQueryParameters

  • withCustomQueryParameters(queryParameters: MapType<string>): this

withCustomServicePath

  • withCustomServicePath(servicePath: string): this