4 ms·
I'd start with a query like this (https://www.graphqlhub.com/playground?query=%7B%0A%20%20hn2%20%7B%0A%20%20%20%20nodeFromHnId(id%3A%20%2219701416%22%2C%20isUse
by tgragnato 7y ago
I'd start with a query like this (https://www.graphqlhub.com/playground?query=%7B%0A%20%20hn2%20%7B%0A%20%20%20%20nodeFromHnId(id%3A%20%2219701416%22%2C%20isUserId%3A%20false)%20%7B%0A%20%20%20%20%20%20id%0A%20%20%20%20%20%20...%20on%20HackerNewsV2Story%20%7B%0A%20%20%20%20%20%20%20%20score%0A%20%20%20%20%20%20%20%20timeISO%0A%20%20%20%20%20%20%20%20title%0A%20%20%20%20%20%20%20%20url%0A%20%20%20%20%20%20%20%20kids(first%3A%205)%20%7B%0A%20%20%20%20%20%20%20%20%20%20edges%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20node%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20by%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20hnId%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20timeISO%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20text%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D https://www.graphqlhub.com/playground?query=%7B%0A%20%20hn2%...).
But if you want recursion you might need to patch the schema (https://github.com/clayallsopp/graphqlhub https://github.com/clayallsopp/graphqlhub).
- pknerd 7y agoThis is amazing! Thnks