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

ArticleList Fails on "Load More" action #23

@MattMcFarland

Description

@MattMcFarland

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions