stacks

Your company's stacks. Returns paginated Stack objects.

Parameters

Name Type Description
createdAfter optional DateTime

List stacks created at or after the given date.

excludedStages optional [String]

List stacks whose tools do not have the given stage names or slugs.

orgId optional ID
searchQuery optional String

Search for stacks by name.

stackAppId optional ID

List stacks that belong to the given stack app ID. Explicitly providing null lists stacks that belong to no stack app.

stages optional [String]

List stacks that have tools assigned to the given stage names or slugs.

updatedAfter optional DateTime

List stacks updated at or after the given date.

updatedBefore optional DateTime

List stacks updated at or before the given date.

Example Queries

Get the first 10 stacks:

{
  stacks(first: 10) {
    edges {
      node {
        name
      }
    }
  }
}

Search for stacks with backend in their names:

{
  stacks(first: 3, searchQuery: "backend") {
    edges {
      node {
        name
      }
    }
  }
}

Get stacks for the stackshare-org org:

{
  stacks(first: 10, orgId: "stackshare-org") {
    edges {
      node {
        name
      }
    }
  }
}

Get stacks for the frontend app:

{
  stacks(first: 10, stackAppId: "frontend") {
    edges {
      node {
        name
      }
    }
  }
}

Get stacks that have tools in the Deprecated or Hold stages:

{
  stacks(first: 10, stages: ["Deprecated", "Hold"]) {
    edges {
      node {
        name
      }
    }
  }
}

Get stacks whose tools do not have the Deprecated or Hold stages:

{
  stacks(first: 10, excludedStages: ["Deprecated", "Hold"]) {
    edges {
      node {
        name
      }
    }
  }
}

Get stacks updated on or after January 1st 2020:

{
  stacks(first: 10, updatedAfter: "2020-01-01") {
    edges {
      node {
        name
      }
    }
  }
}

Get stacks in greater details, with their tools, teams, contributors, and vulnerabilities:

{
  stacks(first: 10) {
    edges {
      node {
        name
        identifier
        private
        inSync
        repoFullName
        repoUrl
        tools(first: 10) {
          edges {
            node {
              name
            }
          }
        }
        teams(first: 10) {
          edges {
            node {
              name
            }
          }
        }
        contributors(first: 10) {
          edges {
            node {
              username
              fullName
            }
          }
        }
        stackApps {
          edges {
            node {
              slug
            }
          }
        }
        stages
        vulnerabilities(first: 10) {
          edges {
            node {
              vulnerabilityDatabaseId
              name
              tool {
                name
              }
              severity
              description
              publishedAt
              url
            }
          }
        }
      }
    }
  }
}