Search and Filtering - Graphql

If I run the “Query list of objects” example in Ratel console:

query {
  queryPost {
    id
    title
    text
    datePublished
  }
}

I get the following error:

Error Name: t

Message: line 2 column 12: Expected Left round brackets. Got: lex.Item [6] "{" at 2:12

Raw Error:

{
  "name": "t",
  "url": "http://localhost:8080/query?timeout=20s&debug=true&ro=true&be=true",
  "errors": [
    {
      "message": "line 2 column 12: Expected Left round brackets. Got: lex.Item [6] \"{\" at 2:12",
      "extensions": {
        "code": "ErrorInvalidRequest"
      }
    }
  ]
}