Adding Elements

  1. Adding Vertices
// Add vertex with type
AddV<Person>()

// Add vertex with properties
AddV<Person>({
    Name: "Alice",
    Age: 30
})
  1. Adding Edges
// Add edge between vertices
AddE<Follows>()::From(vertex1)::To(vertex2)

// Add edge with properties
AddE<Follows>({
    Since: "2024",
    Weight: 0.8
})::From(vertex1)::To(vertex2)

Filtering

  1. Where Clause
::WHERE(_::Props(Age)::GT(25))
  1. Boolean Operations
// Greater than
::GT(value)

// Less than
::LT(value)

// Equals
::EQ(value)

// Not equals
::NEQ(value)

// Greater than or equal
::GTE(value)

// Less than or equal
::LTE(value)
  1. Existence Check
EXISTS(traversal_expression)

Aggregation

  1. Count
::COUNT