schema.json not found
revskill10 opened this issue · 2 comments
revskill10 commented
I have a schema.json
at root of project using apollo schema:download
.
When running npm start
, i got error:
Fatal error: exception Failure("graphql_ppx/ppx\\ -schema=schema.json not found when resolving ppx-flags")
My bsconfig.json
:
"bs-dependencies": [
"reason-react",
"reason-apollo",
"@glennsl/bs-json"
],
"ppx-flags": [
"graphql_ppx/ppx\\ -schema=schema.json"
],
mhallin commented
Are you using bs-platform 4.0.2? In that case, you need to remove \\
from the flags. I was waiting for the release to update the documentation but I must've missed it, sorry.
revskill10 commented
@mhallin yes, i'm using bs-platform 4.0.2. Even without \\
, it still got error (not above error). But i got thing worked through the yarn send-introspection-query
though. Better documentation is needed on how to use custom schema name.
Second question: How to use multiple graphql schemas in one project ?