mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/gen: add support for user-defined ids in gremlin (#1651)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user