Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8324499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:05:45+00:00 2026-06-09T00:05:45+00:00

I am using neo4j, I have nodes with two properties: name and id. I

  • 0

I am using neo4j, I have nodes with two properties: name and id. I have an index on id.
I have relationships “CALL” with a property: “by_test”. This property can take different value (id of any node).

Two nodes can have multiple CALL relationships with different by_test property value.

So let’s say I have 1..N nodes linked by the same CALL.by_test property value.

Node1 -> Node2 -> Node3 -> .. -> Node N

  • How can I get all these nodes?

    1. Do I need to put an Index on the relationship?

    2. Do I have to create dynamic relationship? Instead of CALL.by_test=value, use value has a relationship.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:05:48+00:00Added an answer on June 9, 2026 at 12:05 am

    Using Cypher, you could query for that list like this:

    START n=node:node_auto_index(name="one") 
    MATCH p=(n)-[r:CALL*1..]->(m)
    WHERE ALL(x in r WHERE x.by_test = 3)
    RETURN n,m
    

    In the MATCH you bind a term r to the CALL relationships, which you then use in the WHERE clause to check the by_test property of each.

    As Michael Hunger noted, the r is a collection of relationships, so the WHERE needs to use ALL to check each of the relationships.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
I'm using batch insertion of nodes and relationships into Neo4j graph database. Everything works,
I've been using Neo4j for a little while now and have an app up
I'm using Spring data neo4j 2.1.0.BUILD-SNAPSHOT and Neo4j 1.6.1 server. I have a Friendship
I'm using Spring Data, Neo4j and Jackson to serve a JSON API. I have
I am using Neo4jClient in C# . I added several nodes with properties which
Is there a way to search a manual index in Neo4j using a numeric
I am using Neo4j with Lucene indexing, which works pretty good with nodes, maybe
I have many different nodes connected with relationships. On those relationships, I use some
We are trying to model family relationships using neo4j and would like to understand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.