3 ms·
Show HN: GraphQL Wrapper for Hacker News API
- hirundo 5y agoNice! I hope that this gets sufficient interest for you to leave it up. But the cursor seems to be zero based on each story collection, so I can't figure out how to read just stories up to a given story: { newStories(after: "3") { edges { node { url title } cursor } } } How would I query stories since a given story or datetime?
- hsblhsn 4y agoThanks! The GraphQL API is just a wrapper of HackerNews REST API (doc: https://github.com/HackerNews/API https://github.com/HackerNews/API) The REST endpoints do not provide a way to query the items with variable parameters. So, I could not support it either on GraphQL side. You can check my effort at https://github.com/hsblhsn/hn.hsblhsn.me https://github.com/hsblhsn/hn.hsblhsn.me