summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/jira_connect/branches/graphql/queries/get_projects.query.graphql
blob: d9fba40688df0008a5cd6f907ae41048f19923a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#import "~/graphql_shared/fragments/page_info.fragment.graphql"

query jiraGetProjects(
  $search: String!
  $after: String = ""
  $first: Int!
  $searchNamespaces: Boolean = false
  $sort: String
  $membership: Boolean = true
) {
  projects(
    search: $search
    after: $after
    first: $first
    membership: $membership
    searchNamespaces: $searchNamespaces
    sort: $sort
  ) {
    nodes {
      id
      name
      nameWithNamespace
      fullPath
      avatarUrl
      path
      repository {
        empty
      }
      userPermissions {
        pushCode
      }
    }
    pageInfo {
      ...PageInfo
    }
  }
}