Skip to content

GraphQL Schema Reference

Query

GraphQL Schema definition

  • type Query {
  • # Query information about a Assessment
  • #
  • # Arguments
  • # db: Database to query against
  • # id: ID of the Assessment to query
  • assessment(db: String!, id: String!): Assessment
  • # Query for all Assessments in the given database
  • #
  • # Arguments
  • # db: The database to query
  • # filter: A filter to return a subset of data
  • # first: Returns the first _n_ elements from the list
  • # after: Returns the elements in the list that come after the
  • # specified cursor
  • # orderBy: Sorting options
  • assessments(
  • db: String!,
  • filter: NameFilter,
  • first: Int,
  • after: String,
  • orderBy: BaseSortOrder
  • ): AssessmentConnection
  • # Query for Assessments in the given ID list and database
  • #
  • # Arguments
  • # db: The database to query
  • # ids: The list of Assessment IDs to retrieve
  • assessmentsByIds(db: String!, ids: [String]!): AssessmentConnection
  • # Query information about a Campaign
  • #
  • # Arguments
  • # db: Database to query against
  • # id: ID of the Campaign to query
  • campaign(db: String!, id: String!): Campaign
  • # Query for all Campaigns in the given database
  • #
  • # Arguments
  • # db: The database to query
  • # filter: A filter to return a subset of data
  • # first: Returns the first _n_ elements from the list
  • # after: Returns the elements in the list that come after the
  • # specified cursor
  • # orderBy: Sorting options
  • campaigns(
  • db: String!,
  • filter: NameFilter,
  • first: Int,
  • after: String,
  • orderBy: BaseSortOrder
  • ): CampaignConnection
  • # Query for Campaigns in the given ID list and database
  • #
  • # Arguments
  • # db: The database to query
  • # ids: The list of Campaign IDs to retrieve
  • campaignsByIds(db: String!, ids: [String]!): CampaignConnection
  • # Query information about a Defensive Layer
  • #
  • # Arguments
  • # db: Database to query against
  • # id: ID of the Defensive Layer to query
  • defensivelayer(db: String!, id: String!): DefensiveLayer
  • # Query for all Defensive Layers in the given database
  • #
  • # Arguments
  • # db: The database to query
  • # filter: A filter to return a subset of data
  • # first: Returns the first _n_ elements from the list
  • # after: Returns the elements in the list that come after the
  • # specified cursor
  • # orderBy: Sorting options
  • defensivelayers(
  • db: String!,
  • filter: NameFilter,
  • first: Int,
  • after: String,
  • orderBy: BaseSortOrder
  • ): DefensiveLayerConnection
  • # Query for Defensive Layers in the given ID list and database
  • #
  • # Arguments
  • # db: The database to query
  • # ids: The list of Defensive Layer IDs to retrieve
  • defensivelayersByIds(db: String!, ids: [String]!): DefensiveLayerConnection
  • # Query information about an Import Event
  • #
  • # Arguments
  • # id: ID of the Import Event to query
  • importevent(id: String!): ImportEvent
  • # Query for all Import Events in the given database
  • #
  • # Arguments
  • # first: Returns the first _n_ elements from the list
  • # after: Returns the elements in the list that come after the
  • # specified cursor
  • # orderBy: Sorting options
  • importevents(first: Int, after: String, orderBy: ImportEventSortOrder): ImportEventConnection
  • # Query for Import Events in the given ID list and database
  • #
  • # Arguments
  • # ids: The list of Import Event IDs to retrieve
  • importeventsByIds(ids: [String]!): ImportEventConnection
  • # Query information about a specific Kill Chain
  • #
  • # Arguments
  • # id: ID of the Kill Chain to query
  • killchain(id: String!): KillChain
  • # Query for all Kill Chain in the given database
  • #
  • # Arguments
  • # filter: A filter to return a subset of data
  • # first: Returns the first _n_ elements from the list
  • # after: Returns the elements in the list that come after the
  • # specified cursor
  • # orderBy: Sorting options
  • killchains(
  • filter: NameFilter,
  • first: Int,
  • after: String,
  • orderBy: BaseSortOrder
  • ): KillChainConnection
  • # Query for Kill Chain in the given ID list and database
  • #
  • # Arguments
  • # ids: The list of Kill Chain IDs to retrieve
  • killchainsByIds(ids: [String]!): KillChainConnection
  • # Query information about a specific Organizations
  • #
  • # Arguments
  • # id: ID of the Organizations to query
  • organization(id: String!): Organization
  • # Query for all Organizations
  • #
  • # Arguments
  • # filter: A filter to return a subset of data
  • # first: Returns the first _n_ elements from the list
  • # after: Returns the elements in the list that come after the
  • # specified cursor
  • # orderBy: Sorting options
  • organizations(
  • filter: NameFilter,
  • first: Int,
  • after: String,
  • orderBy: BaseSortOrder
  • ): OrganizationConnection
  • # Query information about a specific Phase
  • #
  • # Arguments
  • # id: ID of the Phase to query
  • phase(id: String!): Phase
  • # Query for all Phases in the given database
  • #
  • # Arguments
  • # filter: A filter to return a subset of data
  • # first: Returns the first _n_ elements from the list
  • # after: Returns the elements in the list that come after the
  • # specified cursor
  • # orderBy: Sorting options
  • phases(filter: NameFilter, first: Int, after: String, orderBy: BaseSortOrder): PhaseConnection
  • # Query for Phases in the given ID list and database
  • #
  • # Arguments
  • # ids: The list of Phase IDs to retrieve
  • phasesByIds(ids: [String]!): PhaseConnection
  • # Query information about a specific Test Case
  • #
  • # Arguments
  • # db: Database to query against
  • # id: ID of the Vendor to query
  • testcase(db: String!, id: String!): TestCase
  • # Query for all Test Cases in the given database
  • #
  • # Arguments
  • # db: The database to query
  • # filter: A filter to return a subset of data
  • # first: Returns the first _n_ elements from the list
  • # after: Returns the elements in the list that come after the
  • # specified cursor
  • # orderBy: Sorting options
  • testcases(
  • db: String!,
  • filter: TestCaseFilter,
  • first: Int,
  • after: String,
  • orderBy: TestCaseSortOrder
  • ): TestCaseConnection
  • # Query for Test Cases in the given ID list and database
  • #
  • # Arguments
  • # db: The database to query
  • # ids: The list of Test Cases IDs to retrieve
  • testcasesByIds(db: String!, ids: [String]!): TestCaseConnection
  • # Query information about a specific Vendor
  • #
  • # Arguments
  • # db: Database to query against
  • # id: ID of the Vendor to query
  • vendor(db: String!, id: String!): Vendor
  • # Query for all Vendors in the given database
  • #
  • # Arguments
  • # db: The database to query
  • # filter: A filter to return a subset of data
  • # first: Returns the first _n_ elements from the list
  • # after: Returns the elements in the list that come after the
  • # specified cursor
  • # orderBy: Sorting options
  • vendors(
  • db: String!,
  • filter: NameFilter,
  • first: Int,
  • after: String,
  • orderBy: BaseSortOrder
  • ): VendorConnection
  • # Query for Vendor information in the given ID list and database
  • #
  • # Arguments
  • # db: The database to query
  • # ids: The list of Vendor IDs to retrieve
  • vendorsByIds(db: String!, ids: [String]!): VendorConnection
  • }

Require by

This element is not required by anyone