Transformer

transformer

Query: transformer Fetch details of a transformer using the transformer shortcode.

Arguments

Field Type Description
shortcodeString!Shortcode of the transformer.

Sample Request

query {
  transformer(shortcode:"gofmt"){
   	id
    name
    shortcode
  }
}

Sample Response

{
  "data": {
    "transformer": {
      "id": "VHJhbnNmb3JtZXI6bGp6a3d6",
      "name": "Go fmt",
      "shortcode": "gofmt"
    }
  }
}

transformers

Query: transformer Fetch details of all available transformers on DeepSource.

Arguments

Field Type Description
offsetInt
beforeString
afterString
firstInt
lastInt

Sample Request

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

Sample Response

{
  "data": {
    "transformers": {
      "edges": [
        {
          "node": {
            "id": "VHJhbnNmb3JtZXI6ZXJ6amFi",
            "name": "dotnet-format",
            "shortcode": "dotnet-format"
          }
        },
        {
          "node": {
            "id": "VHJhbnNmb3JtZXI6bGp6a3d6",
            "name": "Go fmt",
            "shortcode": "gofmt"
          }
        }
      ]
    }
  }
}

Objects

Transformer

A transformer on DeepSource.

FieldTypeDescription
nameString!Name of the transformer.
shortcodeString!Unique identifier for this transformer globally.
idID!The unique identifier for the transformer.

TransformerConnection

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

TransformerEdge

A Relay edge containing a Transformer and its cursor.

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