The parent container.
Execute bulk operations on items.
Bulk takes an array of Operations which are typed based on what the operation does. The choices are: Create, Upsert, Read, Replace, and Delete
Usage example:
// partitionKey is optional at the top level if present in the resourceBody const operations: OperationInput[] = [ { operationType: "Create", resourceBody: { id: "doc1", name: "sample", key: "A" } }, { operationType: "Upsert", partitionKey: 'A', resourceBody: { id: "doc2", name: "other", key: "A" } } ]
await database.container.items.bulk(operation)
Used for modifying the request.
Create a ChangeFeedIterator
to iterate over pages of changes
Create a ChangeFeedIterator
to iterate over pages of changes
Create a ChangeFeedIterator
to iterate over pages of changes
Create a ChangeFeedIterator
to iterate over pages of changes
Create an item.
Any provided type, T, is not necessarily enforced by the SDK. You may get more or less properties and it's up to your logic to enforce it.
There is no set schema for JSON items. They may contain any number of custom properties.
Represents the body of the item. Can contain any number of user defined properties.
Used for modifying the request (for instance, specifying the partition key).
Queries all items.
Query configuration for the operation. See SqlQuerySpec for more info on how to configure a query.
Used for modifying the request (for instance, specifying the partition key).
Queries all items.
Query configuration for the operation. See SqlQuerySpec for more info on how to configure a query.
Used for modifying the request (for instance, specifying the partition key).
Read all items.
There is no set schema for JSON items. They may contain any number of custom properties.
Used for modifying the request (for instance, specifying the partition key).
Read all items.
Any provided type, T, is not necessarily enforced by the SDK. You may get more or less properties and it's up to your logic to enforce it.
There is no set schema for JSON items. They may contain any number of custom properties.
Used for modifying the request (for instance, specifying the partition key).
Create a ChangeFeedIterator
to iterate over pages of changes
Create a ChangeFeedIterator
to iterate over pages of changes
Create a ChangeFeedIterator
to iterate over pages of changes
Create a ChangeFeedIterator
to iterate over pages of changes
Upsert an item.
There is no set schema for JSON items. They may contain any number of custom properties.
Represents the body of the item. Can contain any number of user defined properties.
Used for modifying the request (for instance, specifying the partition key).
Upsert an item.
Any provided type, T, is not necessarily enforced by the SDK. You may get more or less properties and it's up to your logic to enforce it.
There is no set schema for JSON items. They may contain any number of custom properties.
Represents the body of the item. Can contain any number of user defined properties.
Used for modifying the request (for instance, specifying the partition key).
Generated using TypeDoc
Operations for creating new items, and reading/querying all items
Item for reading, replacing, or deleting an existing container; use
.item(id)
.