Questions tagged [github-graphql]

Discussion of the v4 GraphQL API of the Software development platform github.

Links:

119 questions
31
votes
1 answer

Github graphQL OrderBy

I have a GraphQL query. I cannot understand why it is not working. { repositoryOwner(login: "Naramsim") { login repositories(first: 3, isFork: true, orderBy: {field: CREATED_AT}) { edges { node { description …
Naramsim
  • 5,753
  • 4
  • 30
  • 40
15
votes
0 answers

How to get a GitHub repository's commits along with the files that were changed and the changes themselves using GraphQL

I am able to get the list of commits (with fields like commit messages, oid, commit url etc) along with the number of changedFiles, made in a repository on the master branch. However I am not able to figure out how to get any information about the…
jar
  • 1,933
  • 10
  • 28
13
votes
1 answer

GitHub API v4: How can I traverse with pagination? (GraphQL)

I'm using Github API v4 to run search query. From the API documentation I can understand that the following query gives me pageInfo but I don't know how to use it to traverse. query { search(first: 100, type:USER, query:"location:usa repos:>0…
Furkan Yavuz
  • 1,258
  • 3
  • 21
  • 42
11
votes
1 answer

github graphql api, what does "clientMutationId" mean?

I saw clientMutationId field in documentation - https://developer.github.com/v4/guides/migrating-from-rest/#example-strong-typing what does clientMutationId mean? How can I generate it?
slideshowp2
  • 38,463
  • 29
  • 127
  • 255
11
votes
2 answers

Github GraphQL - Getting a repository's list of commits

I am using GraphQL to get some data from a list of repositories using Github's GraphQL (v4) API. I want to get a list of the latest commits from a repository, no matter what is the commit's branch/tag/ref. For now I am doing the following to get the…
FTM
  • 1,324
  • 10
  • 29
10
votes
3 answers

Where the data is Storing in Graphql

I started to use graphQl with react relay. And I followed some tutorials and I can able to get and post with the help of mutations and queries. Everything works fine but my question here is, Where qraphql is saving the data and fetching that for…
9
votes
2 answers

Github GraphQL API: How can I gather specific user's repositories?

I'm trying to get repositories of user with login name "somelogin". It returns all repositories but I'm trying to get repositories owned by him only. Because new API uses GraphQL I couldn't did it. Currently I'm using: { "query": "query {…
Furkan Yavuz
  • 1,258
  • 3
  • 21
  • 42
6
votes
1 answer

How to create issues and labels with the Github GraphQL Api?

V3 of the Api provides a REST interface for this: POST /repos/:owner/:repo/issues { "title": "Found a bug", "body": "I'm having a problem with this.", "assignees": [ "octocat" ], "milestone": 1, "labels": [ "bug" ] }…
Jonathan Wood
  • 871
  • 9
  • 19
6
votes
2 answers

Github Graphql Filter issues by Milestone

I'm wrestling with Github's graphql api (while learning graphql) trying to get it to list all issues in a certain milestone. I can't figure out how to do that from the API docs. I can query issues and see what milestone they're in (sorry, names…
Eddy R.
  • 939
  • 6
  • 12
6
votes
2 answers

github graphql query for project contributors

I want to query using GitHub Graphql api for project contributors, can anyone give me any hints how to make it? Just been trying for some time, and I guess that I am missing some small element. I'd like to get sth like…
Piotr Kaliński
  • 207
  • 1
  • 2
  • 13
6
votes
1 answer

valid GitHub api v4 query keeps returning error "Problems parsing JSON"

Here is an example of a cURL query to the GitHub api v4 that keeps returning an error: curl -H "Authorization: bearer token" -X POST -d " \ { \ \"query\": \"query { repositoryOwner(login: \"brianzelip\") { id } }\" \ } \ "…
Brian Zelip
  • 2,018
  • 3
  • 25
  • 37
5
votes
2 answers

Using GitHub API v4 GraphQL to find all open issues belonging to repositories owned by the user

Can someone please point me in the right direction for listing all open issues that are in repos owned by the user? Thanks in advance.
Will Stone
  • 3,185
  • 2
  • 16
  • 22
5
votes
2 answers

How to get Readme.MD from Github Graphql API?

The v3 has a specific API for retrieving the readme.md file. But in the new V4 GraphQL, there is no such field in the Repository Object. Does anyone know how to retrieve the readme file? Thanks!
user5435999
  • 81
  • 2
  • 9
4
votes
1 answer

Can the GitHub GraphQL API create files in a repository?

The v3 API allowed for the creation of files but I can't seem to find a way to do this with the v4 GraphQL API. Is it currently possible?
RayB
  • 1,460
  • 3
  • 19
  • 34
4
votes
2 answers

Select * for Github GraphQL Search

One of the advantage of Github Search v4 (GraphQL) over v3 is that it can selectively pick the fields that we want, instead of always getting them all. However, the problem I'm facing now is how to get certain fields. I tried the online help but it…
xpt
  • 13,224
  • 19
  • 76
  • 149
1
2 3 4 5 6 7 8