I want to find all the users with username length less than 4. What I’m doing wrong?
ERROR: Some variables are used but not defined Defined:[] Used:[username]
{
userlen(func: lt(len(username), 4))
{
user_id
username
}
}
I tried something like this, but it return all the nodes (with names longer than 4):
{
users(func: has(username)) { un as username }
userlen(func: lt(len(un), 4))
{
user_id
username
}
}