package
0.14.3
Repository: https://github.com/ent/ent.git
Documentation: pkg.go.dev

# Functions

BatchCreate applies the BatchCreateSpec on the graph.
CountNodes counts the nodes in the given graph query.
CreateNode applies the CreateSpec on the graph.
DeleteNodes applies the DeleteSpec on the graph.
Edge sets the edge info for getting the neighbors.
From sets the source of the step.
HasNeighbors applies on the given Selector a neighbors check.
HasNeighborsWith applies on the given Selector a neighbors check.
IsConstraintError returns true if the error resulted from a database constraint violation.
IsForeignKeyConstraintError reports if the error resulted from a database foreign-key constraint violation.
IsUniqueConstraintError reports if the error resulted from a DB uniqueness constraint violation.
LimitNeighbors returns a modifier that limits the number of neighbors (rows) loaded per parent row (node).
Neighbors returns a Selector for evaluating the path-step and getting the neighbors of one vertex.
NewCreateSpec creates a new node creation spec.
NewDeleteSpec creates a new node deletion spec.
NewFieldSpec creates a new FieldSpec with its required fields.
NewQuerySpec creates a new node query spec.
NewStep gets list of options and returns a configured step.
NewUpdateSpec creates a new node update spec.
OrderByNeighborsCount appends ordering based on the number of neighbors.
OrderByNeighborTerms appends ordering based on the number of neighbors.
QueryEdges queries the edges in the graph and scans the result with the given dest function.
QueryNodes queries the nodes in the graph query and scans them to the given values.
SetNeighbors returns a Selector for evaluating the path-step and getting the neighbors of set of vertices.
To sets the destination of the step.
UpdateNode applies the UpdateSpec on one node in the graph.
UpdateNodes applies the UpdateSpec on a set of nodes in the graph.
WrapFunc wraps a selector-func with an entql call expression.

# Constants

FuncSelector represents a selector function to be used as an entql foreign-function.
Many to many.
Many to one (inverse perspective for O2M).
One to many / has many.
One to one / has one.

# Structs

No description provided by the author
A ConstraintError represents an error from mutation that violates a specific constraint.
No description provided by the author
DeleteSpec holds the information for delete one or more nodes in the graph.
No description provided by the author
EdgeQuerySpec holds the information for querying edges in the graph.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NeighborsLimit provides a modifier function that limits the number of neighbors (rows) loaded per parent row (node).
No description provided by the author
No description provided by the author
NotFoundError returns when trying to update an entity, and it was not found in the database.
QuerySpec holds the information for querying nodes in the graph.
No description provided by the author
A Step provides a path-step information to the traversal functions.
No description provided by the author

# Type aliases

No description provided by the author
Rel is an edge relation type.
StepOption allows configuring Steps using functional options.