{"id":16841768,"url":"https://github.com/svozza/neptune-lambda-client","last_synced_at":"2025-03-18T05:24:02.671Z","repository":{"id":57967032,"uuid":"450587354","full_name":"svozza/neptune-lambda-client","owner":"svozza","description":"Gremlin client to robust query AWS Neptune from AWS Lambda","archived":false,"fork":false,"pushed_at":"2022-08-25T13:03:39.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T05:06:00.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svozza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-21T17:48:16.000Z","updated_at":"2023-11-24T09:31:30.000Z","dependencies_parsed_at":"2022-09-20T17:13:44.758Z","dependency_job_id":null,"html_url":"https://github.com/svozza/neptune-lambda-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svozza%2Fneptune-lambda-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svozza%2Fneptune-lambda-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svozza%2Fneptune-lambda-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svozza%2Fneptune-lambda-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svozza","download_url":"https://codeload.github.com/svozza/neptune-lambda-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244161472,"owners_count":20408316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T12:42:58.043Z","updated_at":"2025-03-18T05:24:02.642Z","avatar_url":"https://github.com/svozza.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neptune-lambda-client\n\n## Overview\nA very simple Gremlin client to robustly query AWS Neptune from AWS Lambda. The client will automatically\nreestablish a connection to the database if the web socket connection closes and will also automatically \nretry (5 times) when it encounters `ConcurrentModificationException` and `ReadOnlyViolationException` errors.\n\n## Usage\n\nThis client is instantiated with a factory function and exposes a single function called `query`. `query` accepts \na single argument, which is a function that use the Gremlin `g` object.\n\n```js\nconst gremlinClient = require('neptune-lambda-client');\n\nconst {query} = gremlinClient.create({\n    host: 'neptune-db-url',\n    port: '8182',\n    useIam: true\n});\n\nasync function getNode(id) {\n    return query(async g =\u003e g.V(id).next().then(x =\u003e x.value));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvozza%2Fneptune-lambda-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvozza%2Fneptune-lambda-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvozza%2Fneptune-lambda-client/lists"}