ent: github.com/facebookincubator/ent/schema/edge Index | Files

package edge

import "github.com/facebookincubator/ent/schema/edge"

Index

Package Files

edge.go

func From Uses

func From(name string, t interface{}) *inverseBuilder

From represents a reversed-edge between two vertices that has a back-reference to its source edge.

func To Uses

func To(name string, t interface{}) *assocBuilder

To defines an association edge between two vertices.

type Descriptor Uses

type Descriptor struct {
    Tag      string      // struct tag.
    Type     string      // edge type.
    Name     string      // edge name.
    RefName  string      // ref name; inverse only.
    Ref      *Descriptor // edge reference; to/from of the same type.
    Unique   bool        // unique edge.
    Inverse  bool        // inverse edge.
    Required bool        // required on creation.
}

A Descriptor for edge configuration.

Package edge imports 1 packages (graph) and is imported by 5 packages. Updated 2019-10-02. Refresh now. Tools for package owners.