diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 095003dfae5..082b31ae66e 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -6,6 +6,8 @@ "esbenp.prettier-vscode", "github.vscode-github-actions", "meta.relay", - "yzhang.markdown-all-in-one" + "yzhang.markdown-all-in-one", + "GraphQL.vscode-graphql", + "GraphQL.vscode-graphql-syntax" ] } diff --git a/graphql.config.js b/graphql.config.js index 879cf90e73d..e1242419e8f 100644 --- a/graphql.config.js +++ b/graphql.config.js @@ -1,9 +1,11 @@ module.exports = { projects: { - Parabol: { - schemaPath: './packages/server/graphql/public/schema.graphql', - name: 'Parabol GraphQL Schema', - includes: ['*'] + server: { + schema: './packages/server/graphql/public/schema.graphql', + documents: './packages/server/**/*', + // not sure why this is necessary, but it picks up relay fragments on the client, + // which are handled by the relay extension + exclude: './packages/client/**/*' } } }