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.

Graphql - Neo4j : Return flitered output

I have created a graphQl service

getStudent(id: Int!,collegeID: Int!): [Student]
  @cypher(statement: """
  MATCH (s:Student {id:$id})-[:STUDENT_OF]->(c:College {id:$collegeID})
  RETURN s
  """)

The above service will return student, Now Assume I have other Nodes related to the Student node namely Location, Hostal, Library etc.

GraphQL query will be like

 query {
        getStudent(id:1,collegeID:2){
         name
         stay_in{
          city
          }
          do_visits{
            bookId
         }
      }

It runs perfectly. Now my question is, assume I have a property called isActive in Location, Library nodes. How do I fetch the details of Location,Library node which is having isActive=true from the above query?

0 REPLIES 0