GraphQL Objects

Dependency

type Dependency {
  name: String
  scope: DependencyScope
  versionRange: String
}

Fields

name (String)

Name of the package specified by the import statement

scope (DependencyScope)

“BUILD” or “TEST” corresponding to Imports vs. TestImports

versionRange (String)

Reserved for future use

Package

type Package {
  name: String
  versionList: [Version]
  version(version: String, revision: String): Version
}

Fields

name (String)

Package name as specified in the import statement

versionList ([Version])

List all tagged versions of this package.

version (Version)

Query for a specific version by either the Semantic Version number, or by the revision ID of the repository.

Argument Type Description
revision String Find by repo revision
version String Find by version number

Release

type Release {
  name: String
  version: String
  revision: String
  url: String
}

Fields

name (String)

Name of the repository from which the package was extracted

version (String)

Convenience accessor to the parent Version version

revision (String)

Unique ObjectID of this version from the underlying VCS

url (String)

Link to download an archive of this release in tgz form

Version

type Version {
  name: String
  version: String
  release: Release
  dependencyList: [Dependency]
}

Fields

name (String)

Convenience accessor to the parent Package name

version (String)

Semantic version derrived from repository tags and history

release (Release)

Details about the archive needed to install this package

dependencyList ([Dependency])

List of dependencies that are imported by this version.