/hasura-allow-list-min-reproduction

Reproduction for https://github.com/hasura/graphql-engine/issues/4687

Primary LanguageJavaScript

See issue for context.

This query is allowed in the metadata snapshot, mounted at container runtime. Both the allowed and another query are run by the start script.

Expected Result

$ npm start

{
  "data": {
    "foo": [
      {
        "id": 1
      },
      {
        "id": 2
      },
      {
        "id": 3
      }
    ]
  }
}
{
  "errors": [
    {
      "extensions": {
        "path": "$",
        "code": "validation-failed"
      },
      "message": "query is not allowed"
    }
  ]
}

Actual

$ npm start

{
  "errors": [
    {
      "extensions": {
        "path": "$",
        "code": "validation-failed"
      },
      "message": "query is not allowed"
    }
  ]
}
{
  "errors": [
    {
      "extensions": {
        "path": "$",
        "code": "validation-failed"
      },
      "message": "query is not allowed"
    }
  ]
}

Run

npm i
docker-compose up -d
npm start
docker-compose down