Search code examples
azure-cosmosdbgremlinamazon-neptune

Support for adding custom Gremlin DSL in AWS Neptune and Azure Cosmos DB?


I am wondering if AWS Neptune and Azure Cosmos DB support adding custom Gremlin DSLs?

Also, do they support inline lambdas?

Thank you.


Solution

  • Custom DSLs are really just wrappers you build around existing Gremlin steps. As such, these are evaluated client side, and therefore should work just fine if you are using Amazon Neptune as your graph database. You can just follow the examples for whichever Gremlin client driver you are using such as these instructions for the Gremlin Java client.

    Amazon Neptune does not support in-line code (closures/lambdas). Looking at their documentation I do not believe CosmosDB supports lambdas/closures either.