-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
area/facetsIssues related to face handling, querying, etc.Issues related to face handling, querying, etc.kind/bugSomething is broken.Something is broken.status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.
Description
What version of Dgraph are you using?
1.2.1
Steps to reproduce the issue (command/config used to run Dgraph).
Query for UID facets, and then try to unmarshal them into a Go struct.
Expected behaviour and actual result.
Expected: Facet values properly set.
Actual: Zero values.
I realize the facets response format has recently changed, but I don't understand how I can now unserialize it into my data structures : facets are now independent objects attached to the parent node while my Go facet properties are defined into the child node.
In the go doc example, the result is not unserialized into a Person anymore but instead into a generic json.RawMessage: does it mean it is not possible anymore?
How can I get facets directly back into my data structures?
Metadata
Metadata
Assignees
Labels
area/facetsIssues related to face handling, querying, etc.Issues related to face handling, querying, etc.kind/bugSomething is broken.Something is broken.status/acceptedWe accept to investigate/work on it.We accept to investigate/work on it.