with this query return nothing,
{
me as var(func: eq(user_id, "DA0000000004")) {
school as university_name
fr as friend {
}
}
findfriends(func: eq(university_name, val(school)), first: 10) @filter(not uid(me, fr)) {
_uid_
user_id
user_code
uname
real_name
university_name
}
}
this is perfect, can variable used in eq function?
{
me as var(func: eq(user_id, "DA0000000004")) {
fr as friend {
}
}
findfriends(func: eq(university_name, "University name of DA0000000004"), first: 10) @filter(not uid(me, fr)) {
_uid_
user_id
user_code
uname
real_name
university_name
}
}