Skip to content

Instantly share code, notes, and snippets.

@lohithgn
Created March 13, 2018 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lohithgn/4861748c0546b0461f51bd8cde738ddc to your computer and use it in GitHub Desktop.
Save lohithgn/4861748c0546b0461f51bd8cde738ddc to your computer and use it in GitHub Desktop.
//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