Show HN: GraphQL Wrapper for Hacker News API
hn.hsblhsn.me
Show HN: GraphQL Wrapper for Hacker News API
1–3 of 3 posts
Re: Show HN: GraphQL Wrapper for Hacker News API
#2Nice! 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?Re: Show HN: GraphQL Wrapper for Hacker News API
#3Nice! 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?
Thanks! The GraphQL API is just a wrapper of HackerNews REST API (doc: 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