thinking about overengineering my API and making it return (pseudocode) collection: Either, items: List> instead
1 Boost
0 Likes
I think there's a reason why people smarter than me aren't doing this and I'll have the fun experience of finding out why 
maybe just [CollectionId] | {CollectionId: CollectionItem} to make decoding easier…
int | [CollectionId] | {CollectionId: CollectionItem}…
I think I'm just reinventing GraphQL here 
so in case you don't need the full item object to be present, you can request only the IDs and then you can
getCollections(ids: [CollectionId]) -> [CollectionItem]