Replies: 2 comments 10 replies
-
if you are asking what is GraphQL, check this out it's the latest update from the REST API, check this out |
Beta Was this translation helpful? Give feedback.
-
Hi there! I'm a dev on the Sponsors team. We're adding the ability to query for past sponsorships to the GraphQL API. It's a work in progress, but the first chunk just became available: there's now an {
viewer {
login
sponsorshipsAsSponsor(first: 100, activeOnly: false) {
totalCount
nodes {
sponsorable {
... on User {
login
}
... on Organization {
login
}
}
}
}
}
} When I run this on https://docs.github.com/en/graphql/overview/explorer, I get 20 results because my past sponsorships are included, versus the 11 I get when I either a) omit Hopefully this helps! I'll post on here again if more fields or arguments are added to the API involving past sponsorships. |
Beta Was this translation helpful? Give feedback.
-
Re. Displaying Past Sponsorships on Sponsors Profile Page.
Uhhh, What's the GraphQL API endpoint?
Beta Was this translation helpful? Give feedback.
All reactions