#import "~/graphql_shared/fragments/page_info.fragment.graphql"

query getProjects(
  $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
    }
    pageInfo {
      ...PageInfo
    }
  }
}
