Need help with dgraph query

Hi, I’m not sure if I get it. A sample (JSON or RDF) and also an idea of response would be nice to corroborate with what is being said.

however, I think you eventually will use aggregations tho, so:

{
	allCustomers(func: type(Customer)) {
    customer_name
    did_order {
      order.date
      item_list as count(order.item)
    }
    total_items_by_Customer : sum(val(item_list))
    }

    total(){
      final_sum : sum(val(item_list))
      }
}

Response

{
  "data": {
    "allCustomers": [...],
    "total": [
      {
        "final_sum": 10++
      }
    ]
  },
  "extensions": {
    "server_latency": {
      "parsing_ns": 23847,
      "processing_ns": 2416875,
      "encoding_ns": 4990,
      "assign_timestamp_ns": 453883
    },
    "txn": {
      "start_ts": 30304
    }
  }
}

https://docs.dgraph.io/query-language/#aggregation