View Source Ex4j.Node (Ex4j v0.1.0)

Represents a NODE in your Neo4j Database.

Examples

defmodule Node.User do
  use Ex4j.Node

  graph do
    field(:name, :string)
    field(:age, :integer)
    field(:email, :string)
  end
end

Summary

Functions

A graph macro similar to Ecto Schemas.

Functions

@spec graph(block :: term()) :: term()

A graph macro similar to Ecto Schemas.

https://hexdocs.pm/ecto/Ecto.Schema.html

Examples

graph do
  field(:name, :string)
  field(:age, :integer)
  field(:email, :string)
  field(:date, :utc_datetime)
end