score:1

Accepted answer
if (!this.props.match.params.id) {
   return <Redirect to={"/post/" + data.allPosts.pageInfo.endCursor}
}

Related Query

More Query from same tag