View Source RedisGraph.Graph (ex_redisgraph v0.1.0)

A Graph that represents a RedisGraph database and consists of the name property.

A name is required for each graph.

Link to this section Summary

Functions

Create a graph from a map.

Link to this section Types

@type t() :: %RedisGraph.Graph{name: String.t()}

Link to this section Functions

@spec new(%{name: String.t()}) :: t()

Create a graph from a map.

example

Example

alias RedisGraph.{Graph}

# Create a graph
graph = Graph.new(%{
  name: "social"
})