object :inner_object_type do
field :display, :integer
field :selected, :string
end
object :outer_object_type do
field :id, :integer # or maybe :id?
field :value, :inner_object_type # or maybe an interface / union?
end
object :the_qury_object do
field :something, list_of(:number_key_map_value_type) do
# ...
Thanks @idi527. I’d really love to resolve to a map instead of list, so that in javascript on the client I can do a simple look up data["1"]; data["2"]; //etc. rather than walk the array.
But if there is no other way, I think I will go with your suggestion