4 ms·
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 h
by hirundo 5y 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 5y 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