Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get sponsors with tiers in one GraphQL query #1

Open
catdevnull opened this issue Jun 17, 2022 · 1 comment
Open

Get sponsors with tiers in one GraphQL query #1

catdevnull opened this issue Jun 17, 2022 · 1 comment

Comments

@catdevnull
Copy link

I believe this query should allow this, but for me tier comes out as null as it seems I can't see that kind of thing without being an admin in @ziglang.

query GetSponsors {
  organization(login: "ziglang") {
    sponsorshipsAsMaintainer(first: 100) {
      nodes {
        tier {
          id
          name
          description
        }
        sponsorEntity {
          ... on User {
            id
            name
            login
            twitterUsername
            websiteUrl
          }
          ... on Organization {
            id
            name
            login
            twitterUsername
            websiteUrl
          }
        }
      }
    }
  }
}
@catdevnull
Copy link
Author

Because of this privacy rule, I can't do the second query in the README to try sponsors-html.zig myself (the API returns no sponsors at all). Can we have a dataset somewhere to be able to contribute to this repo?

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

No branches or pull requests

1 participant