Search code examples
javaandroiddatabaseneo4jconnection

How to connect to neo4j database from android app (with java code)?


I am developing one android application in java and i am using neo4j as a database for this app.

Lets, consider i will store the static cypher query in a string. Then after the user clicks on the button, i want to send this query(string) to neo4j server and then execute it on neo4j server and return the result.

My question is that, Is it possible? If yes, how can i do this ? Is there any easy/proper way to do?

Any help will be highly appreciated.


Solution

  • If you want to talk directly to Neo4j, you can use either:

    If you would rather use middleware, there are many many different options:

    When building mobile apps my personal preference is to build a standard API in a middleware server then use HTTPS calls from the app (neo4j-graphql-js has also been awesome for a couple projects), but there are enough stacks that you have the freedom to do it your way.