I just encountered another error with it, It now omits data completely and does not register the data :-
type Post struct {
UID string `json:"uid,omitempty"`
CreatedAt *time.Time
Body string
Title string
OwnerUserID string `json:"uid,omitempty"`
}
p := Post{
CreatedAt: &cdate,
Body: ask.Content,
Title: ask.Title,
OwnerUserID: "0x2",
}
The recorded information after running below query is:-
me(func: uid($id)) {
uid
Title
OwnerUserID
Tags
}
You can see below output data, it completely omits “OwnerUserID” and has no data stored.
{"me":[
{"uid":"0xb",
"Title":"What should I do to improve my memory?",
"Tags":" story life meToo problem memory health"}
]
}