vulcan-docs icon indicating copy to clipboard operation
vulcan-docs copied to clipboard

movies tutorial: graphiql part has a bug

Open mechanical-turk opened this issue 8 years ago • 0 comments

running the following query on the graphiql client:

query moviesQuery{
  moviesList{
    createdAt
    name
  }
}

gives the following error:

{
  "errors": [
    {
      "message": "Cannot query field \"moviesList\" on type \"Query\". Did you mean \"MoviesList\", \"usersList\", or \"MoviesSingle\"?",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ]
    }
  ]
}

When I change the query as suggested into:

query moviesQuery{
  MoviesList{
    createdAt
    name
  }
}

I get the following error:

{
  "data": {
    "MoviesList": null
  },
  "errors": [
    {
      "message": "Cannot read property 'offset' of undefined",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "MoviesList"
      ]
    }
  ]
}

mechanical-turk avatar Aug 10 '17 02:08 mechanical-turk