GitLab GraphQL

FREE
GraphQL
By RapidAPI | Updated hace 2 años | Education
Health Check

N/A

README

Authenticating with GraphQL
A GraphQL request can be made as a POST request to /api/graphql with the query as the payload. You can authorize your request by generating a personal access token to use as a bearer token.

To obtain your GitLab personal access token, head over to: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html

Example Queries

Example 1

query Group {
  group(fullPath: "gitlab-org") {
    id
    name
    projects {
      nodes {
        name
      }
    }
  }
}

Get a specific project and the title of Issue #2.

query ProjectIssue {
  project(fullPath: "gitlab-org/graphql-sandbox") {
    name
    issue(iid: "2") {
      title
    }
  }
}

Pagination Example

query Test{
  project(fullPath: "gitlab-org/graphql-sandbox") {
    name
    issues(first: 2) {
      edges {
        node {
          title
        }
      }
      pageInfo {
        endCursor
        hasNextPage
      }
    }
  }
}
Followers: 1
Resources:
Product Website
API Creator:
Rapid account: Rapid API
RapidAPI
rapidapi
Log In to Rate API
Rating: 5 - Votes: 1