func getVertexProperty()

in gdbclient/internal/graphsonv3/graphreader.go [309:323]


func getVertexProperty(r *result) (interface{}, error) {
	v := &vertexPropertyV3{}
	err := json.Unmarshal(r.Value, v)
	if err != nil {
		return nil, internal.NewDeserializerError("vertexProperty", r.Value, err)
	}

	props, err := resultRouter(v.Value)
	if err != nil {
		return nil, err
	}

	vp := graph.NewDetachedVertexProperty(graph.NewDetachedElement(v.Id, v.Label), props)
	return vp, nil
}