manojlds
(Manoj)
1
Currently trying a query like below:
{
query(func: uid(0xfffd8d67d83cf7fc)) {
next @facets(has(facet1)) {
uid
name
}
}
}
And I get the error message: One argument expected in has, but got 0.
3 Likes
manojlds
(Manoj)
2
Also, the error messages generally seem very confusing.
MichelDiz
(Michel Diz)
3
This syntax below is equivalent to “has” func.
next @facets(facet1)
if it doesn’t exist, it will be empty.
manojlds
(Manoj)
4
But it doesn’t do a filter. @MichelDiz
I am looking for a equivalent for
next @facets(eq(facet1, 1))
but instead of checking value, just check presence of the facet.
MichelDiz
(Michel Diz)
5
I see, there is this issue Improve Facets functions. (not supported in preprocessFilter) · Issue #2896 · dgraph-io/dgraph · GitHub related to this.
Facets needs improvements. But as there’s none interest from the community, it gets low priority.
system
(system)
Closed
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.