Skip to content

Parsing GraphQL v4 Query results #24418

Discussion options

You must be logged in to vote

I found the answer which was straight forward. I’m just accessing the diferrent values by there key with something lookinh like this ( i being the index of the list)

data['data']['search']['edges'][i]['node']['owner']['login'],
data['data']['search']['edges'][i]['node']['name'],
data['data']['search']['edges'][i]['node']['stargazers']['totalCount'],
data['data']['search']['edges'][i]['node']['forkCount'],
data['data']['search']['edges'][i]['node']['defaultBranchRef']['target']['history']['totalCount']

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant