GraphQL Query returning wrong node ID

See the following behavior:

query Commits {
  node(id: "MDM6UmVmMjM1NDM0MTcyOnJlZnMvaGVhZHMvbWFzdGVy") {
    id
  }
}

returns

{
  "data": {
    "node": {
      "id": "MDM6UmVmMjM1NDM0MTcyOnJlZnMvdGFncy9yZWZzL2hlYWRzL21hc3Rlcg=="
    }
  }
}

Hi there @nosferican :wave:

Those node ID values are base64 encoded, and we can decode them to identify the difference.

MDM6UmVmMjM1NDM0MTcyOnJlZnMvaGVhZHMvbWFzdGVy decodes to:

03:Ref235434172:refs/heads/master

…and MDM6UmVmMjM1NDM0MTcyOnJlZnMvdGFncy9yZWZzL2hlYWRzL21hc3Rlcg== decodes to:

03:Ref235434172:refs/tags/refs/heads/master

So then, why are we getting the additional tag'd value in the return I suppose is the question? I’m not really sure!

My question would be, was that commit uploaded via CI utility of some kind?

1 Like