Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Document getting a neo4j Driver w/IAM support #256

Open
1 task done
er1c opened this issue Apr 10, 2024 · 2 comments
Open
1 task done

[FEATURE] Document getting a neo4j Driver w/IAM support #256

er1c opened this issue Apr 10, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@er1c
Copy link

er1c commented Apr 10, 2024

  • Have you validated that this is not currently reported in
    limitations or
    milestones? If so, please link it.

Feature Request Related to a Problem?

Abstract out the neptune-compatible neo4j Driver (or just document it better?). I want to use a library like: https://github.com/neotypes/neotypes that requires the neo4j Driver interface, but I also need/want IAM support.

It seems like some (all?) of this is being implemented in https://github.com/aws/amazon-neptune-jdbc-driver/blob/develop/src/main/java/software/aws/neptune/opencypher/OpenCypherQueryExecutor.java#L22-L83

The AWS docs on this (https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-opencypher-bolt.html#access-graph-opencypher-bolt-java-iam-auth) have some java code, but 1) it's for an old neo4j driver, and 2) it is aws sdk v1

Describe the Solution

Document howto get a GraphDatabase.driver with the assistance of the amazon-neptune-jdbc-driver

Describe Alternatives that have been Considered

The AWS docs should be updated?

@er1c er1c added the enhancement New feature or request label Apr 10, 2024
@Cole-Greer
Copy link
Contributor

Hi @er1c, the underlying neo4j driver instance is not intended to be exposed to end users. I'm not sure I understand your use case correctly. Are you simply using the JDBC driver to obtain a Neo4j Driver instance, or are you looking to connect via JDBC, modify the Neo4j driver, and then continue to use the JDBC connection?

@xiazcy
Copy link
Contributor

xiazcy commented Apr 15, 2024

Thank you for creating the issue. As Cole noted, could you please elaborate on how you are trying to use the JDBC?
If you are simply trying to connect to Neptune with openCypher, the AWS docs you've linked should allow you to use the Neo4j driver directly, which will create the connection for querying through the Neo4j driver itself. In this case, you don't need to use the JDBC driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants