cmaluenda
cmaluenda

Reputation: 2489

How can I use GraphQL to execute Gremlin queries?

I have a backend service with Gremlin and Amazon Neptune. I would like to provide a GraphQL endpoint to execute queries in Neptune. I found an old hackathon project that might works. But, I would like to know if there is a better way to achive it.

Upvotes: 4

Views: 3062

Answers (1)

Kelvin Lawrence
Kelvin Lawrence

Reputation: 14391

The way I have done it is to define a schema using AWS AppSync and to have AppSync call Lambda resolvers that use Gremlin Python. AppSync provides a fully managed GraphQL server environment. The Lambda Python code makes Neptune calls and returns the data to AppSync. For my use case it worked very well. I am aware of several other people using the same approach.

Upvotes: 4

Related Questions