May 2019
Intermediate to advanced
504 pages
11h 50m
English
One of the most helpful features of Cosmos is its server-side programmability, which allows developers to create stored procedures, functions, and database triggers. These concepts are not too foreign for developers that have created applications on SQL databases, and yet the ability to create stored procedures on NOSQL databases, and what's more, on a client-side scripting language such as JavaScript, is quite unprecedented.
As a quick example, let's implement a trigger to calculate the aggregate value(s) on a user's profile:
public class User { [JsonProperty("id")] public string Id { get; set; } [JsonProperty ...Read now
Unlock full access