From 471f0cf4f2087a2fa10cac845e2c7b3bec337afd Mon Sep 17 00:00:00 2001 From: Matt Krick Date: Wed, 11 Dec 2024 15:00:54 -0800 Subject: [PATCH] fix: correct graphql.config.js Signed-off-by: Matt Krick --- .vscode/extensions.json | 4 +++- graphql.config.js | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) 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/**/*' } } }