[–] hirundo 4y ago ↗ Nice! 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 ago ↗ 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
[–] hsblhsn 4y ago ↗ 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
2 comments
[ 3.6 ms ] story [ 14.3 ms ] threadBut 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:
How would I query stories since a given story or datetime?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