Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

movies tutorial: graphiql part has a bug #42

Open
mechanical-turk opened this issue Aug 10, 2017 · 0 comments
Open

movies tutorial: graphiql part has a bug #42

mechanical-turk opened this issue Aug 10, 2017 · 0 comments

Comments

@mechanical-turk
Copy link
Member

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"
      ]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant