gremlin-graphsonv1

0.0.22 • Public • Published

Gremlin GraphSON v1 Reader/Writer

First, this is very far from complete. I'm publishing the package in tandem with an article I wrote about CosmosDB and its Gremlin API. I started this package in order to facilitate work that I'm doing. As such it is incomplete, currently containing only what I need right now.

GraphSON

GraphSON is a JSON-based format that is designed for human readable output that is easily supported in any programming language through the wide-array of JSON parsing libraries that exist on virtually all platforms.

Sounds great doesn't it?

There are 3 versions of GraphSON to date. Changes from version 1 to version 2 were very drastic. Changes from version 2 to version 3 not so much.

CosmosDB outputs all its data from the Gremlin API in GraphSON v2. This isn't bad, the gremlin library can handle GraphSON v2 and v3 fairly seamlessly.

The problem is that CosmosDB only accepts GraphSON v1 input. This is frustrating.

If you've decided to use this package as is, here are some of the features!

  • Transpiled from Typescript so it's very ugly! (oh, no type declaration files yet)
  • Only a few type deserializers created. Didn't actually write any serializers as CosmosDB accepts Graphson V2 just fine.

Readme

Keywords

none

Package Sidebar

Install

npm i gremlin-graphsonv1

Weekly Downloads

0

Version

0.0.22

License

ISC

Unpacked Size

6.68 kB

Total Files

4

Last publish

Collaborators

  • dnoberon