How to properly do filtering

It’s almost done, I did a gist for that example.

ps; I noticed some difficulties (Which I believe can actually confuse people.), but this happens because of uid_in. If it were more dynamic, it would all be easier. I will propose changes for this function tho.

In addition to sorting categories and tags by Nodes, I’ve added a few examples with List Type https://docs.dgraph.io/query-language#list-type. That may be interesting to you. See the queries with the name of “metatag” (do not care that much for the names)

Btw I put some comments and descriptions in the queries and also in JSON, just to remember.

First use run the schema, then the mutation and explore it.
But Check the JSON structure before anything.

I did it in a simple way so we could talk. I’ve been doing this for a while, see what you think.

It’s not ready yet, it needs polishing, but look it over.

Cheers.

1 Like