The Account query is used to fetch the details of your DeepSource account.

account

Query:account Fetch the details of a single DeepSource account.

Arguments

Field Type Description
login String! The login or username to lookup the account by.
vcsProvider VCSProvider! VCS Provider of the account.

Sample Request

query {
    account(login: "deepsourcelabs", vcsProvider: GITHUB) {
    login
    id
    type
    vcsProvider
    vcsUrl
    avatarUrl
  }
}

Sample Response

{
  "data": {
    "account": {
      "login": "cyberdyne",
      "id": "QWNjb3VudDp6bWpws2I=",
      "type": "TEAM",
      "vcsProvider": "GITHUB",
      "vcsUrl": "https://github.com/cyberdyne",
      "avatarUrl": "https://user-avatars.deepsource.io/demo-image.png"
    }
  }
}

Objects

Account

Field Type Description
id String! The ID of the object.
login String! The unique identifier (or username) of the account.
type AccountType! The account type (individual or team).
vcsProvider VCSProvider! VCS Provider of the account.
avatarUrl String URL for the account's public avatar.
report Report! The report associated with this account.
key ReportKey! The key of the report to fetch.
vcsUrl String URL for the account on the VCS Provider.
repositories RepositoryConnection! List of repositories that belong to the requested account
offset Int
before String
after String
first Int
last Int
members TeamMemberConnection! Members of the team. This is an empty list for an individual account.
offset Int
before String
after String
first Int
last Int

AccountConnection

Field Type Description
pageInfo PageInfo! Pagination data for this connection.
edges AccountEdge! Contains the nodes in this connection.
totalCount Int

AccountEdge

A Relay edge containing a Account and its cursor.

Field Type Description
node Account The item at the end of the edge.
cursor String! A cursor for use in pagination.