OK, it is not exactly what I wanted. Now “new_projects” for each company contains every project.
For the following query:
{ node(func:type(Company)) { expand(_all_) { expand(_all_) } } }
I get now:
"node": [
{
"name": "Company 1",
"projects": [
{
"name": "Project 1"
},
{
"name": "Project 2"
}
],
"new_projects": [
{
"name": "Project 1"
},
{
"name": "Project 2"
},
{
"name": "Project 3"
}
]
},
{
"name": "Company 2",
"projects": [
{
"name": "Project 3"
}
],
"new_projects": [
{
"name": "Project 1"
},
{
"name": "Project 2"
},
{
"name": "Project 3"
}
]
}
]
}
So how can I get the expected result (no “new_projects” equals “projects” for each company)?