# use for upsert operation
TYPESENSE_HOST=https://server:port
# use for upsert operation
TYPESENSE_APIKEY_WRITE=xyz
Insert or update an item or a list of item using id as primary key.
The schema must exists before calling this operation.
Use environment variables TYPESENSE_HOST and TYPESENSE_APIKEY_WRITE if override are not provided.
- collection : the name of the typesense collection
- item : an object or an array of object, with id field
- host_override : allow the operation to override the default TYPESENSE_HOST
- apikey_override : allow the operation to override the default TYPESENSE_APIKEY_WRITE