Questions tagged [github-graphql]

Use for questions about the v4 GraphQL API of the GitHub software development platform.

Links:

148 questions
3
votes
1 answer

Get Image from Github repo using GraphQL [Javascript]

I want to get image from a github repository and show it in my website. Say, I have a image in my github-repo called banner.png. I have been successful at getting the content of README.md file which is a plain text. But images are binary thus I…
Anish Silwal
  • 980
  • 1
  • 10
  • 24
3
votes
1 answer

How should a GraphQL request for file upload look like?

I use Graphene on the server side with similar code to the one from documentation: class UploadFile(graphene.ClientIDMutation): class Input: pass # nothing needed for uploading file # your return fields success =…
Jakub Czaplicki
  • 1,787
  • 2
  • 28
  • 50
3
votes
2 answers

Github GraphQl get REPOSITORY subscriber count and the list of subscribers

I am using the following to search repositories by query name "android" { search(query: "android", type: REPOSITORY, first: 50) { repositoryCount edges { node { ... on Repository { id name …
Gowsik
  • 1,096
  • 1
  • 12
  • 25
3
votes
2 answers

Pull Request Review Comment wrong position from the diff?

I have a webhook that listen to all code reviews, then I fetch the comments of this PR review in order to get the position of the comment in the diff. I'm using the GitHub REST API, but the issue I have is the same with the GraphQL API. So the…
Kmaschta
  • 2,369
  • 1
  • 18
  • 36
3
votes
1 answer

Get details of a Git Commit using only the SHA-1 hash through the GitHub REST API or GraphQL API v4

Is it possible to get details of a Git Commit using only the SHA-1 hash (without knowing the repository name and the respective branch) using the GitHub REST API or GraphQL API v4? As per specification of GitHub's REST API, it isn't possible.…
Chiranga Alwis
  • 1,049
  • 1
  • 25
  • 47
3
votes
1 answer

graphql, split huge query to small queries

I am using https://developer.github.com/v4/ And I have a huge query like this: query ($login: String!, $first: Int, $after: String) { user (login: $login){ avatarUrl login name, followers(first: $first, after:$after) { …
Lin Du
  • 88,126
  • 95
  • 281
  • 483
3
votes
2 answers

How can I see that an issue has been moved between columns in a project using the GitHub GraphQL API?

I'd like to determine when a card has moved from one column to another in a GitHub Project Board using the GitHub GraphQL API. I can list all issues in a project board (for example, Twitter Bootstrap) using a query like this one: { …
danvk
  • 15,863
  • 5
  • 72
  • 116
3
votes
1 answer

How to fetch GitHub branch names using GraphQL

Using GitHub GraphQL API (v.4) I would like to get all the branch names existing on a given repository. My attempt { repository(name: "my-repository", owner: "my-account") { ... on Ref { name } } } returns error: {'data': None,…
Javide
  • 2,477
  • 5
  • 45
  • 61
3
votes
2 answers

graphql-dotnet VS graphql-net - Which library is useful for fetching/writing data to/from DB

I want to integrate GraphQL to my existing ASP.NET Framework (with Entity Framework 4) application which has an MSSQL Server as the backend. While browsing through the GraphQL libraries for .NET I found 2 libraries - graphql-dotnet and graphql-net,…
Mr.Human
  • 547
  • 2
  • 12
  • 30
3
votes
1 answer

Argument 'since' on Field 'history' has an invalid value. Expected type 'GitTimestamp'

I am using Github's GraphQL (v4) API to make some calls. I am trying to get commits information about a repository, but I am having issues with defining the since attribute of the history connection of the Commit object. I am getting the following…
FTM
  • 1,887
  • 17
  • 34
3
votes
0 answers

Are there any Java based Graphql client to invoke graphql server from java code?

My application (spring-boot application) is going to invoke a set of graphQL services hosted in different server. My java code (server side) needs to invoke those services to fetch & update data. I'm looking for Java based GraphQL clients (API) so…
bpa.mdl
  • 396
  • 1
  • 5
  • 19
3
votes
1 answer

GitHub GraphQL search limited to language

I'm trying to use GitHub's GraphQL API to find a list of repos matching a query but limited to a specific language. However I can't find anything in the docs relating to the language filter the typical online search supports or how something like…
Kilian
  • 2,122
  • 2
  • 24
  • 42
2
votes
0 answers

Hide discussion comment using GitHub graphQL api

In a github discussion I am pinging folks who have pending PRs to review and to make the discussion less noisy I want to hide all previous comments before posting new comments. Probably this hide option would be good but I am not getting how to do…
Sujay
  • 51
  • 4
2
votes
1 answer

Error message 'Resource not accessible by personal access token' when trying to perform mutation in Github GraphQL API

I'm trying to build a simple Android app to list random repositories and be able to add a star to certain repos. Every time when I try to do a mutation to add a star to a project using Altair I get the said error message, but when I perform the same…
vr4u
  • 31
  • 5
2
votes
1 answer

Github graphql api search filter based on repo owner location

I am exploring Github's graphQL API, and I am new to this. In the below use case, I am trying to fetch the repos which are of Java and their owners are from the location "London". I have tried multiple filters, like the one below and none has worked…