Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//create document
var volcano = new Volcano
{
VolcanoName = "Rainier",
Country = "United States",
Region = "US-Washington",
Location = new Location
{
Type = "Point",
Coordinates = new double[] { -121.758, 46.87 }
},
Elevation = 4392,
Type = "StratoVolcano",
Status = "Dendrochronology",
LastEruption = "Last known eruption from 1800-1899, inclusive"
};
var document = await client.CreateDocumentAsync(
UriFactory.CreateDocumentCollectionUri(dbName,collectionName)
,volcano);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment