reasonml-community / reason-apollo-hooks

Deprecated in favor of https://github.com/reasonml-community/graphql-ppx
https://reasonml-community.github.io/reason-apollo-hooks/
MIT License
137 stars 28 forks source link

The value definition can't be found #135

Open painedpineapple opened 4 years ago

painedpineapple commented 4 years ago

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 commented 4 years ago

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"