introspectron 2.13.2 → 2.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/esm/gql.js +1 -1
  2. package/gql.js +1 -1
  3. package/package.json +4 -4
package/esm/gql.js CHANGED
@@ -117,7 +117,7 @@ export const parseGraphQuery = (introQuery) => {
117
117
  }
118
118
  return context;
119
119
  };
120
- const mutations = mutationsRoot.fields.reduce((m, mutation) => {
120
+ const mutations = (mutationsRoot?.fields || []).reduce((m, mutation) => {
121
121
  let mutationType = 'other';
122
122
  if (/^Create/.test(mutation.type.name))
123
123
  mutationType = 'create';
package/gql.js CHANGED
@@ -122,7 +122,7 @@ const parseGraphQuery = (introQuery) => {
122
122
  }
123
123
  return context;
124
124
  };
125
- const mutations = mutationsRoot.fields.reduce((m, mutation) => {
125
+ const mutations = (mutationsRoot?.fields || []).reduce((m, mutation) => {
126
126
  let mutationType = 'other';
127
127
  if (/^Create/.test(mutation.type.name))
128
128
  mutationType = 'create';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "introspectron",
3
- "version": "2.13.2",
3
+ "version": "2.13.4",
4
4
  "description": "introspect your Postgres database and generate an SDK",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "main": "index.js",
@@ -32,8 +32,8 @@
32
32
  "devDependencies": {
33
33
  "@jest/test-sequencer": "^29.7.0",
34
34
  "@types/pg": "^8.15.2",
35
- "graphile-test": "^2.7.2",
36
- "pgsql-test": "^2.14.2"
35
+ "launchql-test": "^2.8.1",
36
+ "pgsql-test": "^2.14.4"
37
37
  },
38
38
  "dependencies": {
39
39
  "graphql": "15.10.1",
@@ -48,5 +48,5 @@
48
48
  "graphile",
49
49
  "launchql"
50
50
  ],
51
- "gitHead": "25b59a1403d95d86be14bd36c94e5af1689df1c3"
51
+ "gitHead": "8d33c8fea54bc0f98f18fc1e3c6266955debe6f9"
52
52
  }