Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-09-2021 09:57 PM
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?
All the sessions of the conference are now available online