Skip to main content
Skip to main content

upsert - Stock Location Next Module Reference

This documentation provides a reference to the upsert method. This belongs to the Stock Location Next Module.

upsert(data, sharedContext?): Promise<StockLocationDTO[]>

This method updates or creates stock location service nexts if they don't exist.

Example

{example-code}

Parameters

dataPartial<UpdateStockLocationNextInput>[]Required
The list of Make all properties in t optional
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<StockLocationDTO[]>Required
The created or updated stock location service nexts.

upsert(data, sharedContext?): Promise<StockLocationDTO>

This method updates or creates a stock location service next if it doesn't exist.

Example

{example-code}

Parameters

dataPartial<UpdateStockLocationNextInput>Required
Make all properties in T optional
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<StockLocationDTO>Required
The created or updated stock location service next.
Was this section helpful?