Skip to content

Commit

Permalink
show appropriate error for introspection query (#86)
Browse files Browse the repository at this point in the history
* show appropriate error for introspection query

* update eslint version

* update node version in azure pipelines

* update node version in appveyor
  • Loading branch information
Rishichandra Wawhal authored May 16, 2021
1 parent 2b43eb2 commit 0ea787f
Show file tree
Hide file tree
Showing 14 changed files with 587 additions and 707 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
environment:
nodejs_version: "9"
nodejs_version: "12"
cache:
- '%AppData%\npm-cache -> appveyor.yml'
- node_modules -> package-lock.json
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
resources:
containers:
- container: nodejs
image: node:8
image: node:12
- container: postgres
image: postgres:10-alpine
env:
Expand Down
6 changes: 3 additions & 3 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ console.dir("Executing query 'query { menu_items { name } }': ");
client.query(
{
query: 'query { menu_items { name } }',
}
},
).then(response => console.log(JSON.stringify(response)))
.catch(error => console.error(error));

Expand All @@ -17,7 +17,7 @@ client.query(
{
query: 'mutation ($name: String) {delete_menu_items(where: {name: {_eq: $name}}) {returning {name}}}',
variables: {name: 'pizza'},
}
},
).then(() => console.log('Successfully executed delete mutation.'))
.catch(error => console.error(error));

Expand All @@ -28,6 +28,6 @@ client.query(
variables: {
name: 'pasta',
},
}
},
).then(() => console.log('Successfully executed insert mutation'))
.catch(error => console.error(error));
Loading

0 comments on commit 0ea787f

Please sign in to comment.