arangodb-tinkerpop-provider icon indicating copy to clipboard operation
arangodb-tinkerpop-provider copied to clipboard

Support Integer and UUID ids

Open arcanefoam opened this issue 6 years ago • 2 comments

Supporting this types of ids works for serialization (storing in the DB), however when desrialiazing (reading the DB) it does not. The reason is that Integers and UUIDs are stored as strings in the DB and deserialized as such. This causes a problem if the user (i.e. tinkerpop engine/console) is expecting an actual Integer and UUID. We could use the same workaround as for node attributes by storing the expected id class in the DB and then using this information for deserialization.

arcanefoam avatar Dec 30 '18 13:12 arcanefoam

Hello, if someone just copy paste your Readme code the part with the "element IDs" will not work. The reason is that the ArangoDBConfigurationBuilder prefix all collections with "graph_". So your code example will not work if you just use "person/1" you need to query "graph_person/1".

It's not a big deal but maybe it confuses arangodb graph newbies (like me) :)

Marcel

a-marcel avatar Jan 06 '19 14:01 a-marcel

Thanks for the update. I will take a look and update the readme (or maybe the code).

arcanefoam avatar Jan 06 '19 14:01 arcanefoam