Ask HN: How to download comments of my favorite submission on HN
Does anyone have a tool for this?
But if you want recursion you might need to patch the schema (https://github.com/clayallsopp/graphqlhub).
Or is that too simplistic?
If you prefer using maps, for each table (map), use id as the key and the rest of the fields as the fields for a structure used as the value for each entry (using a C struct, or a Python tuple, named tuple or dataclass, assuming these languages).
You may want to use the id field from the HN URLs. You could drop the submission field for the comments.
Edit: You also need to decide how to handle edited, deleted and flagged comments, and dupe and flagged submissions.