Hi , i have this query for recommendation nodes. {
find as var(func: eq(first_name,"mehrdad")) {
sc as math(1)
fr as follow {
follow {
fscore as math(sc)
}
}
}
recommendationProfile(func: uid(fscore), orderdesc: val(fscore), first: 10) @filter(not uid(find, fr)) {
id
first_name
}
}
i want set a filter for this query .
filter is :
when find users for recommend to a user , filter users that have a experience common with the user (example: “mehrdad”)
experience is a edge that user(mehrdad) has a connect to this.this picture is a sample data for this recommend.
the green edge is experience edge and blue edge is follow edge.
in this data all 2 experience edge is same node.i don’t know how to write this .
thank you for help
{
find as var(func: eq(first_name,"مهرداد")) {
sc as math(1)
fr as follow {
follow {
fscore as math(sc)
}
}
}
recommendationProfile(func: uid(fscore), orderdesc: val(fscore), first: 10) @filter(not uid(find, fr)) {
id
first_name
}
}