CockpitQL icon indicating copy to clipboard operation
CockpitQL copied to clipboard

How does the lang attribute works ?

Open WhippetsAintDogs opened this issue 6 years ago • 0 comments

The codebase suggess that the lang parameter is only effective when the _id parameter is defined as well. However, it seems that when we query a collection with the _id parameter, the server crash.

query AQuery {
  cockpit {
    collection(name: "ACollectionName", _id:"AnId")
  }
}

The result is:

{
  "errors": [
    {
      "message": "Internal server error",
      "locations": [
        {
          "line": 3,
          "column": 5
        }
      ],
      "path": [
        "cockpit",
        "collection"
      ]
    }
  ],
  "data": {
    "cockpit": {
      "collection": null
    }
  }
}

WhippetsAintDogs avatar Oct 12 '18 18:10 WhippetsAintDogs