Package version:
Create a StoredProcedure.
Azure Cosmos DB allows stored procedures to be executed in the storage tier, directly against an item container. The script gets executed under ACID transactions on the primary storage partition of the specified container. For additional details, refer to the server-side JavaScript API documentation.
Optional
options: RequestOptionsQuery all Stored Procedures.
Query configuration for the operation. See SqlQuerySpec for more info on how to configure a query.
Optional
options: FeedOptionsQuery all Stored Procedures.
Query configuration for the operation. See SqlQuerySpec for more info on how to configure a query.
Optional
options: FeedOptionsRead all stored procedures.
Optional
options: FeedOptions
Operations for creating, upserting, or reading/querying all Stored Procedures.
For operations to read, replace, delete, or execute a specific, existing stored procedure by id, see
container.storedProcedure()
.