cypher Questions

5

Solved

I am trying to run queries from the neo4j browser to reproduce results from my neo4j-javascript-driver client. What is the syntax for defining query parameters in the neo4j b I recently attended ...
Aragonite asked 22/2, 2017 at 16:59

7

Solved

I've a query that fetches nodes based on a property MATCH (c { type: 'sometype' }) WITH c LIMIT 100 RETURN c all I want is to also fetch all the relations between nodes in the resultset, on IRC ...
Colettecoleus asked 8/8, 2014 at 12:41

3

Solved

The neo4j manual gives a good example for listing all property keys using the REST API: :GET /db/data/propertykeys Can this be achieved by using cypher only? maybe for one specific node as well?...
Caducity asked 8/4, 2015 at 19:37

4

Solved

I am learning neo4j , i want to know that is there any way that i can create a relationship or a node that will be delete automatically after a certain period of time.
Sterilize asked 13/2, 2015 at 11:50

2

Solved

Is it possible to create a relationship to a relationship in Neo4j? The use-case goes something like this: I have a bunch of questions, like "What movie should we see?" Each question can have ma...
Chromophore asked 11/8, 2017 at 1:10

7

Solved

I understand it is possible to use the wildcard (*) symbol to return all references in a Cypher query, such as: MATCH p:Product WHERE p.price='1950' RETURN *; ==> +---------------------------...
Deputy asked 18/7, 2013 at 22:23

2

Solved

I am trying to get the relationship type of a very simple Cypher query, like the following MATCH (n)-[r]-(m) RETURN n, r, m; Unfortunately this return an empty object for r. This is troublesome ...
Stovepipe asked 17/7, 2015 at 22:48

2

Solved

Hello I was trying to import some data in csv file to neo4j in my ubuntu 12.04. The csv file is a two column data file with no header its format is like: 12ffew3213,232rwe13 12ffew3213,5yur2ru2r...
Useless asked 1/8, 2014 at 23:48

6

Solved

I can't find a way to change a relationship type in Cypher. Is this operation possible at all? If not: what's the best way achieve this result?
Raisaraise asked 26/3, 2014 at 18:47

2

Solved

Has there been any update to the syntax of an IF/ELSE statement in Cypher? I know about CASE and the FOREACH "hacks" but they are so unsightly to read :) I was wanting to do something with option...
Lenssen asked 18/4, 2017 at 20:19

6

Solved

I'm looking for something similar to the MySQL ( SHOW INDEXES ). I was able to get a list of indexes using py2neo in Python graphDB = neo4j.GraphDatabaseService() indexes = graphDB.get_indexes(ne...
Vegetarianism asked 6/11, 2013 at 0:6

4

Solved

The CREATE INDEX <indexName> command is not idempotent and will cause an error if the given index already exists. I'm new to neo4j, and can't find a predicate that avoids this error. I've tri...
Disesteem asked 1/4, 2020 at 15:7

4

Solved

Is it possible to run a case-insensitive cypher query on neo4j? Try that: http://console.neo4j.org/ When I type into this: start n=node(*) match n-[]->m where (m.name="Neo") return m it ...
Lermontov asked 18/11, 2012 at 10:23

2

I am trying to connect to Neo4j from Spark using neo4j-spark-connector. I am facing an authentication issue when I try to connect to the Neo4j org.neo4j.driver.v1.exceptions.AuthenticationException...
Italian asked 14/10, 2019 at 13:28

4

Solved

I have a simple Neo4j graph database that I created while trying to model something for a new application. When I run the following query, I get the nodes that I am expecting, but I also get more r...
Byram asked 6/7, 2016 at 13:9

3

Solved

Using Cypher 1.8, there are some functions working on collections and returning a single element: HEAD( expression ): START a=node(2) RETURN a.array, head(a.array) LAST( expression ): START a=...
Hustings asked 16/12, 2012 at 18:59

3

Solved

I have two nodes user and files with a relationship :contains, the relationship has a property idwhich is an array, represented as (:user)-[:contains{id:[12345]}]->(:files) However I want to po...
Anemophilous asked 24/2, 2014 at 5:45

3

Solved

I've been trying to figure out a way to adapt the merge_one functionality from py2neo v2 to v3. I read in a Google group that "The merge_one method no longer exists in v3 as you should be able to u...
Zhao asked 12/7, 2016 at 16:27

5

Solved

Is there a way to return just an integer through cypher? I am working with neo4j and the javascript driver. However when I do a count() I get {low: 10, high: 0}. I would like to force this to retu...
Robinia asked 7/3, 2017 at 10:7

3

Solved

I have a cypher script file and I would like to run it directly. All answers I could find on SO to the best of my knowledge use the command neo4j-shell which in my version (Neo4j server 3.5.5) see...
Fornax asked 8/5, 2019 at 10:30

2

I came across a scenario i.e, Each and every node is to represent with an image . so i have to store image into neo4j. please healp me out with your views on it.
Marthena asked 21/10, 2014 at 6:50

4

Solved

I'm trying to implement the logic in Cypher where, based on a particular condition (CASE Statement), I would create some nodes and relationships; the code is as below MATCH (g:Game)-[:PLAYER]->...
Titanesque asked 20/12, 2014 at 2:36

1

Solved

Creating a named graph from the main Neo4j Graph is documented. Beside, one also knows how to list, drop, check if a named graph already exists, e.g. CALL gds.graph.exists('my-store-graph') YIELD e...
Giuseppe asked 4/6, 2020 at 0:50

1

Solved

I have the following graph: Currently I am using this QUERY to add a relationship between two nodes: MATCH (a:Service),(b:Service) WHERE a.service_id = 'cs2322' and b.service_id = 'ab3232' CREA...
Miru asked 6/5, 2020 at 1:39

2

Solved

I have a graph of members and the items that they've looked at. This data is going to be used to recommend items based on items that similar members have looked at. I'd like to sort the items base...
Aleris asked 9/12, 2013 at 23:13

© 2022 - 2024 — McMap. All rights reserved.