How to save multiple query variables result as separate field in custom data structure as a result?

Hi Saeed,

For what purpose?

I do not fully understand the purpose of the last block.

From what I understand of your example, it’s not possible to do this in Dgraph. Ideally you run the first two queries in the form of blocks. (No need for vars)

A “custom” block in Dgraph could only be done for the purpose of aggregation. In this case only mathematical operators could be used.

But it may be possible to support this custom usage. But you would have to make us understand this usage, how it would benefit others to spend time developing this feature.

Anyway, I recommend that you open a detailed issue in its usage according to the model described in the issues template.

if not, just use two simple blocks.