Transformer
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
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.
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. |
Updated over 1 year ago