Can we automate with NodeJS

configuration
cypher
operations
knowledge-base

(Sucheta) #1

Hi,

Traditionally, we first setup the database of Neo4j by entering the Create queries in browser. But can we directly send the queries like CREATE, MATCH, etc. to Neo4j without running the queries on Neo4j Browser via NodeJS ? Is there a provision ? I do not want to enter the queries in Neo4j Browser and want to automate this process vis NodeJS.

Thanks & Regards,
Sucheta


(Michael Hunger) #2

You can run a populate script in your application, that first checks if there is data in the graph

MATCH () RETURN count(*) as count

and if not runs the statements (or a file) to populate it.