reason-apollo-hooks icon indicating copy to clipboard operation
reason-apollo-hooks copied to clipboard

The value definition can't be found

Open painedpineapple opened this issue 5 years ago • 1 comments

I'm following the basic useQuery example (https://github.com/reasonml-community/reason-apollo-hooks#usequery-arrow_up) but am receiving the following error:

161 ┆ [@react.component]
  162 ┆ let make = () => {
  163 ┆   let (simple, _) = useQuery(UsersQuery.definition);

  The value definition can't be found in UsersQuery

I've created a small reproduction of the issue in this repo: https://github.com/thislogancall/apollo-graphql-definition-repro

painedpineapple avatar Jul 10 '20 21:07 painedpineapple

Per assistance in Discord by hawkeye, It looks like the docs for the graphql_ppx should point to https://github.com/reasonml-community/graphql-ppx/tree/v0.7.1.

The @reason-community versions "^1.0.0-beta.18", and "^0.0.1"don't work with reason-apollo-hooks "^6.0.1"

painedpineapple avatar Jul 10 '20 22:07 painedpineapple