MichelDiz
9/2/2018 - 5:58 PM

https://discuss.dgraph.io/t/unable-to-alias-and-sort-on-facet-value/3105

{
    "set": [ {
      "user": [
        {
        "uid": "_:michael",
        "name": "Michael",
        "age": 39,
        "Posts": [
              {
                  "uid": "_:michaelfirst",
                  "title": "Michael first post"
              },
              {
                  "uid": "_:michaelsecond",
                  "title": "Michael second post"
              }
                ],
        "rated": [
              {
                  "uid": "_:amitfirst",
                   "rated|rating": 80
              },
              {
                  "uid": "_:amitsecond",
                   "rated|rating": 50
              }]
},
        {
        "uid": "_:amit",
        "name@hi": "अमित",
        "name@bn": "অমিত",
        "name@en": "Amit",
        "age": 35,
        "Posts": [
              {
                  "uid": "_:amitfirst",
                  "title": "Amit first post"
              },
              {
                  "uid": "_:amitsecond",
                  "title": "Amit second post"
              }
                ],
        "rated": [
              {
                  "uid": "_:michaelfirst",
                   "rated|rating": 30
              },
              {
                 "uid": "_:michaelsecond",
                   "rated|rating": 90
              }]
        },
        {
        "uid": "_:sarah",
        "name": "Sarah",
        "age": 55,
        "rated": [
              {
                  "uid": "_:michaelfirst",
                   "rated|rating": 180
              },
              {
                  "uid": "_:michaelsecond",
                   "rated|rating": 150
              }]
}
                
      ]
    }]
}