Questions tagged [github-graphql]

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

Links:

148 questions
0
votes
1 answer

How to get all comments along with issues with github graphql

I'am trying this get github issues by their ids through graphql endpoints And tried this code { repository(name: "reponame", owner: "ownername") { issue1: issue(number: 2) { title createdAt } issue2: issue(number: 3) { …
Bhaskar g
  • 37
  • 6
0
votes
2 answers

GitHub GraphQL API returning forbidden when using access token from GithubAuthProvider

I'm using GithubAuthProvider with the added scope repo to get the user's access token which is later used to access the GitHub GraphQL API (the GitHub App has the permissions for Contents and Metadata set to Read-only). The problem is when I'm…
0
votes
1 answer

How to get list of issues of a repo using Github GraphQL.NET

According to the documentation, I used this code to build a query: var query = new Query() .Repository("some_repo", "MuziburRahman") .Select(r => new { r.Name, r.Description, Issues = r.Issues(100, null, null, null, null, null,…
Muzib
  • 2,412
  • 3
  • 21
  • 32
0
votes
1 answer

using graphql github api to filter pr's merged between two dates

if you sign into https://developer.github.com/v4/explorer/ and run this query { search(query: "org:ruby is:pr merged:<2019-07-11", type: ISSUE, last: 5) { edges { node { ... on PullRequest { url mergedAt …
eiu165
  • 6,101
  • 10
  • 41
  • 59
0
votes
3 answers

Creating GraphQL mutation

I have the following sample mutation: mutation { checkoutCreate(input: { lineItems: [{ variantId: "Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC80", quantity: 1 }] }) { checkout { id webUrl lineItems(first: 5) { …
ShaneKm
  • 20,823
  • 43
  • 167
  • 296
0
votes
1 answer

GitHub's GraphQL API: How can I get all of the commits I've contributed to a particular public repo?

I'm trying to query GitHub's GraphQL API (v4). What GraphQL query for this API can be used to get all of the commits I've contributed to a particular public repo?
sunw
  • 535
  • 5
  • 29
0
votes
0 answers

How to give an alias name to a schema field in graphql

const Films = new GraphQLObjectType({ name: 'films', fields: () => ({ id:{ type: GraphQLString }, name: { type: GraphQLString, }, uniq_id: { type: GraphQLString, }) I want to give an…
Upasana
  • 45
  • 9
0
votes
3 answers

How to enable Vulnerability alerts through the GitHub API or GraphQL

I have searched high and low, but I can't find anything telling me how to enable GitHub Vulnerability alerts through their API. I conversely can't find anything saying it's not supported. Does anyone know where I can find the API documentation if it…
Russ
  • 12,312
  • 20
  • 59
  • 78
0
votes
0 answers

Graphql mandatory check doesn't work when using GraphiQL UI with input variables

I have defined a mutation like below with email field marked as mandatory type Mutation { bookTicket (person: PersonInput! ,email: String!): Ticket } input PersonInput{ personId: ID! name: String! date: String! comment:…
0
votes
0 answers

How to create query with multi options for parameter in graphql

I want to create query with multi options for parameter Example: My query is query ($username: String, $phone: String, $name: String) When work I can type: `query (username: "08789456")` or query (username: "08789456", name: "Ryan") It can…
Võ Cát Thư
  • 47
  • 2
  • 9
0
votes
0 answers

neo4j-graphql-schema: Cypher query to Graphql Schema and query

I tested the following query in a Neo4j browser and it worked. Now I am trying to define a schema and query for a React app using the neo4j-graphql-js plugin/driver (import { neo4jgraphql } from "neo4j-graphql-js";). My issue is I do not know how…
N6DYN
  • 325
  • 1
  • 3
  • 17
0
votes
1 answer

Get list repositories of selected user with PR count for that particular repository?

Im trying to get list of repositories and pull requests where the author is selected user. I tried out this { user(login:"s8sachin"){ repositories(first: 100){ nodes{ name pullRequests{ totalCount // this gives…
-1
votes
1 answer

Github GraphQL API link not fetching data through React Web App, Error Found

I want to create a react web app that outputs data from github with the GitHub graphql API. So I used a method that I used in creating a weather web app which still uses graphql and react but my app throws an error because the data cannot be…
Charleskimani
  • 440
  • 7
  • 25
1 2 3
9
10