Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

ArticleList Fails on "Load More" action #23

Open
MattMcFarland opened this issue Jan 25, 2016 · 0 comments
Open

ArticleList Fails on "Load More" action #23

MattMcFarland opened this issue Jan 25, 2016 · 0 comments

Comments

@MattMcFarland
Copy link
Owner

When in the "ArticleList" view, relay returns an error when trying to get the next page.

The query does look different than I would think:

query ArticleList {
  node(id:"R3JhcGhBUEk6") {
    ...F0
  }
}

fragment F0 on GraphAPI {
  _articleszIQOK:articles(after:"YXJyYXljb25uZWN0aW9uOjQ=",first:5) {
    edges {
      cursor,
      node {
        author {
          id,
          username
        },
        content,
        dateCreated,
        id,
        title
      }
    },
    pageInfo {
      hasNextPage,
      hasPreviousPage
    }
  },
  id
}

I'm not sure if this is a schema problem, or if I'm implementing this incorrectly. I used the documentation found here: https://facebook.github.io/relay/docs/api-reference-relay-container.html#content

At any rate, this is a critical issue and after spending some time getting nowhere, I've decided to put it on the backburner and plow through the rest of the features.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant