Skip to main content

Home > git-documentdb > CRUDInterface > insert

CRUDInterface.insert() method#

Signature:
insert(_id: string | undefined | null, data: JsonDoc | Uint8Array | string, options?: PutOptions): Promise<PutResultJsonDoc>;

Parameters#

ParameterTypeDescription
_idstring | undefined | null
dataJsonDoc | Uint8Array | string
optionsPutOptions
Returns:

Promise<PutResultJsonDoc >