Open petrbela opened 2 years ago
Relay specific stuff doesn't seem to work at least. with that setup. Unknown directive "@refetchable".GraphQL: Validation
you can actually add support for Relay-specific directives using external definitions, using e.g. this project.
I actually included a local definition file with what I need instead, by adding it to the schema
list in my .graphqlrc.yml
conf file:
schema:
- "./data/schema.graphql"
- "./data/relay-directives.graphql"
documents: "./src/**/*.{ts,tsx}"
FYI, there's an official Relay VSCode extension in the works to be available as soon as the next Relay version is released.
Seems Relay 13 no longer uses
relay-config
. What is the configuration we should pass toapollo.client.js
? If I follow the expanded example in readme, it throwsUnable to load relay-compiler, so 'includes' may need manual configuration.
when calling generateConfig, followed byCannot read property 'schemaExtensions' of undefined
.FWIW, I can set up the Apollo VSCode plugin and get field autocompletion without this plugin and setting
apollo.config.js
to the following (but not sure what features from this plugin I'm missing and will need later?):