Get result count

This feature would allow getting just the count and not the list of UIDs. Example:

{
  me(_xid_: m.0bxtg) {
    type.object.name.en
    film.actor.film(count) 
  }
}
Response: 
{
  "_uid_": "0xcbcefccffb9eb400",
  "count": 75,
  "type.object.name.en": "Tom Hanks"
}

So instead of getting the list of UIDs, we’ll just get the count. Also, once you specify the count at some level, it cannot have any children.

What do you think about this use case? Any suggestions, modifications, comments on this are welcome!

You might want to have a look at https://facebook.github.io/graphql/ to see the idiomatic way for specifying that you want the count.

{
  me(_xid_: m.0bxtg) {
    type.object.name.en
    film.actor.film {
        count
    } 
  }
}

They do it like this probably.

Based on how GraphQL does this, this might be better.

film.actor.film { _count_ }

Just like one would get _xid_.