cubiql icon indicating copy to clipboard operation
cubiql copied to clipboard

Get the hierarcical levels of a dataset's dimension

Open zeginis opened this issue 7 years ago • 2 comments

The query can look like:

{dataset_births{
  dimensions{
    uri    
    levels{
      enum_name
      label
}}}}

This will return for example for the referenceArea:

  • datazones 2001
  • council area
  • electoral wards
  • etc ...

zeginis avatar Nov 21 '17 14:11 zeginis

Just clarifying that you mean the returned array is ordered from most-specific -> most-general?

RickMoynihan avatar Nov 21 '17 17:11 RickMoynihan

What we need is to get the granularity levels of a dimension that appear at a dataset. Yes it could be ordered

On Tue, 21 Nov 2017 at 19:11, Rick Moynihan [email protected] wrote:

Just clarifying that you mean the returned array is ordered from most-specific -> most-general?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Swirrl/graphql-qb/issues/54#issuecomment-346095613, or mute the thread https://github.com/notifications/unsubscribe-auth/ADPwb6XQHbgLW-bsyc0NA7VFSZuSDXwLks5s4wREgaJpZM4Ql9YM .

zeginis avatar Nov 22 '17 14:11 zeginis