I’ve got fulltext index on the predicate
<game.name>: string @index(fulltext, hash) @upsert .
Here’s the full query:
{
games(func:has(game), orderdesc:game.popularity,first:10) @filter(alloftext(game.name,"Pokemon")) {
game.coverUrl
game.name
game.platform
uid
}}
arijit
(Arijit Das)
May 15, 2020, 3:12am
2
Can you try the following?
{
games(func:has(game.name), orderdesc:game.popularity,first:10) @filter(alloftext(game.name,"Pokemon")) {
game.coverUrl
game.name
game.platform
uid
}}
or
{
games(func:type(game), orderdesc:game.popularity,first:10) @filter(alloftext(game.name,"Pokemon")) {
game.coverUrl
game.name
game.platform
uid
}}
But for this you need to set dgraph.type predicate to `game`.
system
(system)
Closed
June 14, 2020, 3:12am
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.