reason-apollo-hooks
reason-apollo-hooks copied to clipboard
The value definition can't be found
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
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"