Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-29-2021 05:09 PM
Hello, I'm working on a database that has two types of nodes : jobs and skills . They have a 'USES' relationship.
I am able of getting all skills used in a certain job. However I would like to have the skill.name of all skills in a list in the response json using this:
MATCH (n:Technologies)<-[u:USES]-(j:Jobs) where j.name="skilname" return n.name order by n.trend ASC limit 25
Basically, this is what I'm getting:
[
{
"keys": [
"n.name"
],
"length": 1,
"_fields": [
"TKProf"
],
"_fieldLookup": {
"n.name": 0
}
},
{
"keys": [
"n.name"
],
"length": 1,
"_fields": [
"SmarTeam"
],
"_fieldLookup": {
"n.name": 0
}
But I would like to get this:
[ {keys:["n. name"],
values: [skill1.name,skill2.name,skill3.name.....]
}
]
Any tip is well appreciated, thank you.
Solved! Go to Solution.
07-30-2021 08:04 AM
07-30-2021 08:04 AM
08-01-2021 09:14 AM
Thank you! I ended up using with COLLECT(n.name) as namelist return namelist
.
All the sessions of the conference are now available online