GraphQL: get prev / next entry from current entry (channel)
You should be able to use next and prev (see documentation and this issue).
query getEntryData($id: [QueryArgument]) {
  entry(id: $id) {
    id,
    slug,
    title,
    uri,
    prev(section: &quot;blog&quot;, orderBy: &quot;postDate desc&quot;) {
      id,
        slug,
        title,
        uri
    },
    next(section: &quot;blog&quot;, orderBy: &quot;postDate desc&quot;) {
      id,
        slug,
        title,
        uri
    }
  }
}