Transformers

transformer

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

Arguments

Field Type Description
shortcode String! 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
offset Int
before String
after String
first Int
last Int

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.

Field Type Description
name String! Name of the transformer.
shortcode String! Unique identifier for this transformer globally.
id ID! The unique identifier for the transformer.

TransformerConnection

Field Type Description
pageInfo PageInfo! Pagination data for this connection.
edges [TransformerEdge]! Contains the nodes in this connection.
totalCount Int

TransformerEdge

A Relay edge containing a Transformer and its cursor.

Field Type Description
node Transformer The item at the end of the edge.
cursor String! A cursor for use in pagination.