analyzer

Query: analyzer Fetch details of a single analyzer using the shortcode.

Arguments

Field Type Description
shortcodeString!Shortcode of the analyzer you'd like to get.

Sample Request

query {
  analyzer(shortcode:"python") {
    id
    shortcode
    name
  }
}

Sample Response

{
  "data": {
    "analyzer": {
      "id": "QW5hbHl6Zdd6bGtiZXZ6",
      "shortcode": "python",
      "name": "Python"
    }
  }
}

analyzers

Query: analyzers Fetch all available analyzers on DeepSource.

Arguments

Field Type Description
offsetInt
beforeString
afterString
firstInt
lastInt

Sample Request

query {
  analyzers{
   	edges {
      node {
        id
        name
        shortcode
      }
    }
  }
}

Sample Response

{
  "data": {
    "analyzers": {
      "edges": [
        {
          "node": {
            "id": "QW5hbHl6ZXI6bGtiZXZ6",
            "name": "Python",
            "shortcode": "python"
          }
        },
        {
          "node": {
            "id": "QW5hbHl6ZXI6cmx6b2xi",
            "name": "Go",
            "shortcode": "go"
          }
        }
      ]
    }
  }
}

Objects

Analyzer

FieldTypeDescription
idID!The ID of the object.
shortcodeString!Unique identifier for this analyzer globally.
nameString!Human-friendly name for this analyzer.
issuesIssueConnection!
offsetInt
beforeString
afterString
firstInt
lastInt

AnalyzerConnection

FieldTypeDescription
pageInfoPageInfo!

Pagination data for this connection.

edgesAnalyzerEdge!

Contains the nodes in this connection.

totalCountInt

AnalyzerEdge

A Relay edge containing a Analyzer and its cursor.

FieldTypeDescription
nodeAnalyzerThe item at the end of the edge.
cursorString!A cursor for use in pagination.

Issue

FieldTypeDescription
shortcodeString!
titleString!
analyzerAnalyzer!
autofixAvailableBoolean!Whether this issue is autofixable
isRecommendedBoolean!Whether this is a recommended issue. Recommended issues show up at the top of the results.
idID!The ID of the object.
categoryIssueCategory!Category of the issue.
shortDescriptionString!A short description of the issue.

IssueConnection

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[IssueEdge]!Contains the nodes in this connection.
totalCountInt

IssueEdge

A Relay edge containing a Issue and its cursor.

FieldTypeDescription
nodeIssueThe item at the end of the edge.
cursorString!A cursor for use in pagination.