From 636b32a5522b2c57615d4890204998033ef61988 Mon Sep 17 00:00:00 2001 From: Richard Lindhout Date: Fri, 28 Feb 2020 17:45:21 +0100 Subject: [PATCH] Add comment about debugging config + add comment specifying the language --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 6bc4c29..26a3e08 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ + # vscode-apollo-relay [![npm](https://img.shields.io/npm/v/vscode-apollo-relay.svg)](https://www.npmjs.com/package/vscode-apollo-relay) @@ -29,9 +30,21 @@ In your `apollo.config.js` file: ```js const { config } = require("vscode-apollo-relay").generateConfig() +// If you want to debug the config, uncomment the following line +// console.log(JSON.stringify(config)) +// You have to restart Visual Code after installing and check the output of Apollo GraphQL (next to the Terimal window) module.exports = config ``` +If you use [relay-config], don't forget to specify the language +```javascript +// relay.config.js +module.exports = { + .............. + language: 'typescript', +} +``` + Or, if you don’t use [relay-config] and the default values don’t work for you: ```js