entc/gen: add support for user-defined ids in gremlin (#1651)

This commit is contained in:
Ariel Mashraki
2021-06-22 23:26:32 +03:00
committed by GitHub
parent 5004265666
commit 37de2bd3f6
21 changed files with 132 additions and 47 deletions

View File

@@ -122,6 +122,17 @@ const (
// Code implements the Node interface.
func (c Cardinality) Code() (string, []interface{}) { return string(c), nil }
// Keyword defines a Gremlin keyword.
type Keyword string
// Keyword options.
const (
ID Keyword = "id"
)
// Code implements the Node interface.
func (k Keyword) Code() (string, []interface{}) { return string(k), nil }
// Order of vertex properties.
type Order string