wolf4ood / gremlin-rs

Gremlin Rust
Apache License 2.0
108 stars 30 forks source link

Question: Convert string results back to GValue #186

Open karanjitsingh opened 1 year ago

karanjitsingh commented 1 year ago

I have a case where the response of an API results in a string form of GValue, wondering if there can be a possible serde implementation of converting a string like the following to GValue

[
    Vertex(Vertex {
        id: String("op1+owner+name"),
        label: "op1",
        properties: {
            "modification_time": [VertexProperty { label: "modification_time", id: Int32(685301873), value: String("2023-03-19T04:41:52.370Z")}]
            "name": [VertexProperty { label: "name", id: Int32(881512247), value: String("op1")}],
            "service": [VertexProperty { label: "owner", id: Int32(-1257104450), value: String("o1")}]
        }
    })
]

Would be happy to contribute, if you can give me some pointers on going about this