Improve request for events
arojunior opened this issue · 2 comments
arojunior commented
Now it is fetching all events for all following list. We need to find a way to fetch just the lasts events and fetching more when user scroll the page.
Can we use GraphQL api? https://developer.github.com/v4/
arojunior commented
Just trying it out
query {
user(login: "arojunior") {
following(last: 5) {
totalCount
nodes {
login
issueComments(last: 3) {
nodes {
body
}
}
pullRequests(last: 3) {
nodes {
body
}
}
commitComments(last: 3) {
nodes {
body
}
}
starredRepositories(last: 3) {
nodes {
nameWithOwner
}
}
}
}
}
}