Struct type for uid predicate

I don’t know golang but the example here is specifying uid within the back tick json syntax.
As in,

Uid string `json:"uid,omitempty"`

See person struct

https://godoc.org/github.com/dgraph-io/dgo

1 Like