Repositories

Repositories Query

Returns a paginated list of Repository objects, with optional filtering and ordering.

Arguments

Name
Type
Description

after

Cursor

Returns the elements in the list that come after the specified cursor

first

Int

Returns the first n elements from the list

before

Cursor

Returns the elements in the list that come before the specified cursor

last

Int

Returns the last n elements from the list

orderBy

RepositoryOrder

Ordering options for Repositories returned from the connection

where

RepositoryWhereInput

Filtering options for Repositories returned from the connection

Return Type

RepositoryConnection! - A connection to a list of Repository objects with pagination information.

Notes

The data field contains custom repository attributes as JSON. You can use the Data, DataHasKey, DataIn, and DataContains filters to query based on JSON content. For complex JSON field queries, see Advanced JSON Field Queries.

Usage Example

query {
  repositories(
    first: 20,
    orderBy: { direction: ASC, field: NAME },
    where: {
      type: static,
      virtualRepo: false,
      or: [
        { nameContains: "North" },
        { nameContains: "South" }
      ]
    }
  ) {
    edges {
      node {
        id
        name
        type
        virtualRepo
        layout
        parentID
        data
      }
      cursor
    }
    pageInfo {
      hasNextPage
      endCursor
    }
    totalCount
  }
}

Last updated

Was this helpful?