cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Creation of a script in neo4j

Mastege
Node Link

Hello,
Not working alone on one of my neo4j projects, I was wondering if it was possible to create a script so that my colleagues could run it without having to copy everything
(This script mainly consists of creating a new relationship) here are the pieces of code I need:
First
CREATE (Apple) - [: INCLUDE_ON] -> (Apple)
2nd

MATCH
  (a1: Apple),
  (a2: Apple)
WHERE a1.name = 'greenapple' AND a2.name = 'redapple'
CREATE (a1) - [a3: INCLUDE_ON] -> (a2)
RETURN type (a3)

Thanks a lot !

1 REPLY 1

Hi @Mastege ,

Neo4j itself does not yet have a way to share Cypher. There are a few approaches possible:

  1. use github or some other service for sharing code
  2. create a "Neo4j Browser Guide" which contains the shared scripts

For creating a Neo4j Browser guide, please see: Tutorial: Create a Custom Browser Guide - Developer Guides

In particular note the need to whitelist the hosted location of the guide. Tutorial: Create a Custom Browser Guide - Developer Guides

Best,
ABK