Open metsmarko opened 1 week ago
@metsmarko thanks for reporting that.
It fails if we use the[]byte
type.
The following example will work (beside the Data
field):
type DocWithRev struct {
Rev string `json:"_rev,omitempty"`
Key string `json:"_key,omitempty"`
Name string `json:"name"`
Age *int `json:"age"`
Countries map[string]int `json:"countries"`
Data []byte // not works!
}
We will prepare the fix
Driver version: 2.1.0 Arango version: 3.12.0 Arango startup mode:
docker run -e ARANGO_ROOT_PASSWORD="" -p 8529:8529 arangodb
OS: Ubuntu x86_64Not able to deserialize byte slices (returns nil) when using Arango Go Driver V2 with VPACK content type. Content-type JSON works. Code to reproduce: