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"
}
}
}
Query: transformer Fetch details of all available transformers on DeepSource.
Arguments
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
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. |
| Field |
Type |
Description |
| pageInfo |
PageInfo! |
Pagination data for this connection. |
| edges |
[TransformerEdge]! |
Contains the nodes in this connection. |
| totalCount |
Int |
|
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. |