open-austin/BASTA-tfwa

[BUG] ID returned from GraphQL API is NOT an integer

ryanrightmer opened this issue · 1 comments

Test query:

query MyQuery {
  tenants( order: { id: ASC } ) {
    edges {
      node {
        id
      }
    }
  }
}

responds with

{
  "data": {
    "tenants": {
      "edges": [
        {
          "node": {
            "id": "VGVuYW50Cmkx"
          }
        }
      ]
    }
  }
}

However, String is not a valid query type for ID.

image

Instead, you have to query with

query {
  tenant(id: 1) {
    id
    name
  }
}

Bug hath been squashed with pr 143