Closed Arnarkari93 closed 2 years ago
You need to include @reasonml-community/graphql-ppx
in bs-dependencies
of bsconfig.json
. When you mix fragments with fields we need some runtime code in the serialize function.
🤦♂️ I feel so stupid, thank you again!
I'm facing an issue when trying to fetch a fragment alongside other fields of the same type. In the graphql-pxx docs there is this example:
When I try to create a similar query I get an error saying that the
GraphQL_PPX
module is not found. I tried to add aopen ApolloClient
in the same module as I define the query and then I get a different error, saying the thedeepMerge
method is not defined underGraphQL_PPX
.Versions:
Reproduce example: https://github.com/Arnarkari93/fragment-reproduce-issue