Home > Blockchain >  Display the total number of repositories of a user and the name and creation times of the first thre
Display the total number of repositories of a user and the name and creation times of the first thre

Time:12-29

Display the both total number of repositories of a user and the name and creation times of the first three of them in ascending order according to name in https://docs.github.com/en/graphql/overview/explorer.

I am using https://docs.github.com/en/graphql/overview/explorer to make the query.

Any suggestion?

CodePudding user response:

You can run this query to display the total number of repositories of a user and the name and creation times of the first three of them in ascending order according to name

{
  user(login:"userName"){
    repositories(orderBy:  {field:NAME, direction: ASC} first:3) {
      totalCount
      nodes {
        createdAt
        name
      }
    }
  }
}

  • Related