From 217498e23ce22ef78f6d0cc9ae9881b73cae7f84 Mon Sep 17 00:00:00 2001 From: James Baxley Date: Mon, 12 Nov 2018 09:26:58 -0500 Subject: [PATCH] add apollo.config.js and catch operation error --- .gitignore | 2 ++ packages/apollo-language-server/apollo.config.js | 10 ++++++++++ .../src/engine/operations/checkOperations.ts | 1 + 3 files changed, 13 insertions(+) create mode 100644 packages/apollo-language-server/apollo.config.js diff --git a/.gitignore b/.gitignore index ad022660fc..c016b4bf23 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ packages/apollo-vscode/webview-content packages/vscode-apollo/server packages/vscode-apollo/webview-content **/*.vsix + +.env diff --git a/packages/apollo-language-server/apollo.config.js b/packages/apollo-language-server/apollo.config.js new file mode 100644 index 0000000000..f97fabe5cd --- /dev/null +++ b/packages/apollo-language-server/apollo.config.js @@ -0,0 +1,10 @@ +module.exports = { + client: { + name: "Apollo CLI", + service: "engine-api-prod" + }, + engine: { + frontend: "https://engine-staging.apollographql.com", + endpoint: "https://engine-staging-graphql.apollographql.com/api/graphql" + } +}; diff --git a/packages/apollo-language-server/src/engine/operations/checkOperations.ts b/packages/apollo-language-server/src/engine/operations/checkOperations.ts index 42e45c2688..732cb5edea 100644 --- a/packages/apollo-language-server/src/engine/operations/checkOperations.ts +++ b/packages/apollo-language-server/src/engine/operations/checkOperations.ts @@ -15,6 +15,7 @@ export interface CheckOperationsVariables { export const CHECK_OPERATIONS = gql` mutation CheckOperations( + $id: ID! $operations: [QueryDocumentInput!]! $tag: String $gitContext: GitContextInput