Package version:
Readonly
databaseThe parent Database.
Readonly
idThe id of the given container.
Returns a reference URL to the resource. Used for linking in Permissions.
Used to read, replace, or delete a specific, existing Conflict by id.
Use .conflicts
for creating new conflicts, or querying/reading all conflicts.
The id of the Conflict.
Optional
partitionKey: PartitionKeyDelete the container
Optional
options: RequestOptionsDelete all documents belong to the container for the provided partition key value
The partition key value of the items to be deleted
Optional
options: RequestOptionsGets the partition key definition first by looking into the cache otherwise by reading the collection.
Read the container's definition
Optional
options: RequestOptionsGets offer on container. If none exists, returns an OfferResponse with undefined.
Optional
feedOptions: FeedOptionsReplace the container's definition
Optional
options: RequestOptions
Operations for reading, replacing, or deleting a specific, existing container by id.
See
Containers for creating new containers, and reading/querying all containers; use
.containers
.Note: all these operations make calls against a fixed budget. You should design your system such that these calls scale sublinearly with your application. For instance, do not call
container(id).read()
before every singleitem.read()
call, to ensure the container exists; do this once on application start up.