model

package
v0.0.0-...-c46e59b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AddNode

type AddNode struct {
	Type       string                 `json:"type"`
	ID         *string                `json:"id"`
	Properties map[string]interface{} `json:"properties"`
}

type AggregateFunction

type AggregateFunction string
const (
	AggregateFunctionSum   AggregateFunction = "SUM"
	AggregateFunctionCount AggregateFunction = "COUNT"
	AggregateFunctionAvg   AggregateFunction = "AVG"
	AggregateFunctionMax   AggregateFunction = "MAX"
	AggregateFunctionMin   AggregateFunction = "MIN"
)

func (AggregateFunction) IsValid

func (e AggregateFunction) IsValid() bool

func (AggregateFunction) MarshalGQL

func (e AggregateFunction) MarshalGQL(w io.Writer)

func (AggregateFunction) String

func (e AggregateFunction) String() string

func (*AggregateFunction) UnmarshalGQL

func (e *AggregateFunction) UnmarshalGQL(v interface{}) error

type Direction

type Direction string
const (
	DirectionOutgoing Direction = "OUTGOING"
	DirectionIncoming Direction = "INCOMING"
)

func (Direction) IsValid

func (e Direction) IsValid() bool

func (Direction) MarshalGQL

func (e Direction) MarshalGQL(w io.Writer)

func (Direction) String

func (e Direction) String() string

func (*Direction) UnmarshalGQL

func (e *Direction) UnmarshalGQL(v interface{}) error

type Entity

type Entity interface {
	IsEntity()
}

type Expression

type Expression struct {
	Key      string      `json:"key"`
	Operator Operator    `json:"operator"`
	Value    interface{} `json:"value"`
}

type Key

type Key struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

type Node

type Node struct {
	ID              string                 `json:"id"`
	Type            string                 `json:"type"`
	Properties      map[string]interface{} `json:"properties"`
	GetProperty     interface{}            `json:"getProperty"`
	SetProperties   bool                   `json:"setProperties"`
	DelProperty     bool                   `json:"delProperty"`
	GetRelation     *Relation              `json:"getRelation"`
	AddRelation     *Relation              `json:"addRelation"`
	DelRelation     bool                   `json:"delRelation"`
	Relations       *Relations             `json:"relations"`
	AddIncomingNode *Node                  `json:"addIncomingNode"`
	AddOutboundNode *Node                  `json:"addOutboundNode"`
}

func (Node) IsEntity

func (Node) IsEntity()

type NodeWhere

type NodeWhere struct {
	Cursor      *string       `json:"cursor"`
	Type        string        `json:"type"`
	Expressions []*Expression `json:"expressions"`
	PageSize    *int          `json:"page_size"`
	OrderBy     *OrderBy      `json:"order_by"`
}

type Nodes

type Nodes struct {
	Cursor string  `json:"cursor"`
	Values []*Node `json:"values"`
	Agg    float64 `json:"agg"`
}

type Operator

type Operator string
const (
	OperatorEq        Operator = "EQ"
	OperatorNeq       Operator = "NEQ"
	OperatorGt        Operator = "GT"
	OperatorLt        Operator = "LT"
	OperatorGte       Operator = "GTE"
	OperatorLte       Operator = "LTE"
	OperatorContains  Operator = "CONTAINS"
	OperatorHasPrefix Operator = "HAS_PREFIX"
	OperatorHasSuffix Operator = "HAS_SUFFIX"
)

func (Operator) IsValid

func (e Operator) IsValid() bool

func (Operator) MarshalGQL

func (e Operator) MarshalGQL(w io.Writer)

func (Operator) String

func (e Operator) String() string

func (*Operator) UnmarshalGQL

func (e *Operator) UnmarshalGQL(v interface{}) error

type OrderBy

type OrderBy struct {
	Field   string `json:"field"`
	Reverse *bool  `json:"reverse"`
}

type Relation

type Relation struct {
	ID            string                 `json:"id"`
	Type          string                 `json:"type"`
	Properties    map[string]interface{} `json:"properties"`
	GetProperty   interface{}            `json:"getProperty"`
	SetProperties bool                   `json:"setProperties"`
	DelProperty   bool                   `json:"delProperty"`
	Source        *Node                  `json:"source"`
	Target        *Node                  `json:"target"`
}

func (Relation) IsEntity

func (Relation) IsEntity()

type RelationWhere

type RelationWhere struct {
	Cursor      *string       `json:"cursor"`
	Direction   Direction     `json:"direction"`
	Relation    string        `json:"relation"`
	TargetType  string        `json:"target_type"`
	Expressions []*Expression `json:"expressions"`
	PageSize    *int          `json:"page_size"`
	OrderBy     *OrderBy      `json:"order_by"`
}

type Relations

type Relations struct {
	Cursor string      `json:"cursor"`
	Values []*Relation `json:"values"`
	Agg    float64     `json:"agg"`
}

type SetNode

type SetNode struct {
	Type       string                 `json:"type"`
	ID         string                 `json:"id"`
	Properties map[string]interface{} `json:"properties"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL