Skip to content

Instantly share code, notes, and snippets.

Cosmos DB Gremlin Query Cheat Sheet

Object types

  • vertices
  • edges

Object Attributes

  • ID: unique property that identifies the element
  • Label: Used to identify types of objects

Joshua Phelps

Seattle, WA, 98126 | 425-445-1681 | joshua.phelps89@gmail.com
GitHub | Blog | Linkedin | Website

Software Engineer


Software engineer experienced in JavaScript, Typescript, and Ruby on Rails based programming. I am currently a LEAP apprentice at Microsoft and have worked with developers across CSE to deliver a customer focused approach when integrating with Azure services. I managed and developed a CLI application that allows Azure users to quickly identify configuration issues and provides them with direct links to product documentation. Throughout my apprenticeship I gained experience with Azure, ARM templates, Resource Graph, Azure SDK, and GitHub Actions.

const arr = ["Coffee", "Tea"]
arr.push("Water")
arr // ["Coffee", "Tea", "Water"]
let y = 2 // 2
y = 2 // 2
const z = 1; // 1
z = 2; // TypeError: Assignment to constant variable.
var x = 1; // 1
var x = 2; // 2
let y = 1; // 1
let y = 2; // SyntaxError: Identifier 'y' has already been declared
const z = 1; // 1
const z = 2; // SyntaxError: Identifier 'z' has already been declared
const x = 1;
// Here x is 1
{
const x = 2;
// Here x is 2
}
// Here x is 1
let x = 1;
// Here x is 1
{
let x = 2;
// Here x is 2
}
// Here x is 1
var x = 1;
// Here x is 1
{
var x = 2;
// Here x is 2
}
// Here x is 2
{
var x = 1;
let y = 2;
const z = 3
}
// x CAN be used here
// y can NOT be used here
// z can NOT be used here
console.log(x) // 1
// You cannot use sayHello here
function someFunction() {
var sayHello = "Hello";
// you can use sayHello here
}
// You cannot use sayHello here