introspectron 0.2.12 → 2.0.3

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.
package/main/gql.js DELETED
@@ -1,388 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.parseGraphQuery = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
13
-
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
-
16
- var parseGraphQuery = function parseGraphQuery(introQuery) {
17
- var types = introQuery.__schema.types;
18
- var HASH = types.reduce(function (m, v) {
19
- m[v.name] = v;
20
- return m;
21
- }, {});
22
- var queriesRoot = types.find(function (t) {
23
- return t.name === 'Query';
24
- });
25
- var mutationsRoot = types.find(function (t) {
26
- return t.name === 'Mutation';
27
- });
28
-
29
- var getInputForQueries = function getInputForQueries(input) {
30
- var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
31
-
32
- if (input.kind === 'NON_NULL') {
33
- context.isNotNull = true;
34
- return getInputForQueries(input.ofType, context);
35
- }
36
-
37
- if (input.kind === 'LIST') {
38
- context.isArray = true;
39
-
40
- if (context.isNotNull) {
41
- context.isArrayNotNull = true;
42
- delete context.isNotNull;
43
- }
44
-
45
- return getInputForQueries(input.ofType, context);
46
- }
47
-
48
- if (input.kind === 'INPUT_OBJECT') {
49
- if (input.name && HASH.hasOwnProperty(input.name)) {
50
- var schema = HASH[input.name];
51
- context.properties = schema.inputFields.map(function (field) {
52
- return {
53
- name: field.name,
54
- type: field.type
55
- };
56
- }).reduce(function (m3, v) {
57
- m3[v.name] = v;
58
- return m3;
59
- }, {});
60
- }
61
- } else if (input.kind === 'OBJECT') {
62
- if (input.name && HASH.hasOwnProperty(input.name)) {
63
- var _schema = HASH[input.name];
64
- context.properties = _schema.fields.map(function (field) {
65
- return {
66
- name: field.name,
67
- type: field.type
68
- };
69
- }).reduce(function (m3, v) {
70
- m3[v.name] = v;
71
- return m3;
72
- }, {});
73
- }
74
- } else {
75
- context.type = input.name;
76
- }
77
-
78
- return context;
79
- };
80
-
81
- var getInputForMutations = function getInputForMutations(input) {
82
- var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
83
-
84
- if (input.kind === 'NON_NULL') {
85
- context.isNotNull = true;
86
- return getInputForMutations(input.ofType, context);
87
- }
88
-
89
- if (input.kind === 'LIST') {
90
- context.isArray = true;
91
-
92
- if (context.isNotNull) {
93
- context.isArrayNotNull = true;
94
- delete context.isNotNull;
95
- }
96
-
97
- return getInputForMutations(input.ofType, context);
98
- }
99
-
100
- if (input.kind === 'INPUT_OBJECT') {
101
- if (input.name && HASH.hasOwnProperty(input.name)) {
102
- var schema = HASH[input.name];
103
- context.properties = schema.inputFields.map(function (field) {
104
- return getInputForMutations(field.type, {
105
- name: field.name
106
- });
107
- }).reduce(function (m3, v) {
108
- m3[v.name] = v;
109
- return m3;
110
- }, {});
111
- }
112
- } else if (input.kind === 'OBJECT') {
113
- if (input.name && HASH.hasOwnProperty(input.name)) {
114
- var _schema2 = HASH[input.name];
115
- context.properties = _schema2.fields.map(function (field) {
116
- return {
117
- name: field.name,
118
- type: field.type
119
- };
120
- }).reduce(function (m3, v) {
121
- m3[v.name] = v;
122
- return m3;
123
- }, {});
124
- }
125
- } else {
126
- context.type = input.name;
127
- }
128
-
129
- return context;
130
- };
131
-
132
- var mutations = mutationsRoot.fields.reduce(function (m, mutation) {
133
- var mutationType = 'other';
134
-
135
- if (/^Create/.test(mutation.type.name)) {
136
- mutationType = 'create';
137
- } else if (/^Update/.test(mutation.type.name)) {
138
- mutationType = 'patch';
139
- } else if (/^Delete/.test(mutation.type.name)) {
140
- mutationType = 'delete';
141
- }
142
-
143
- var props = mutation.args.reduce(function (m2, arg) {
144
- var _arg$type, _arg$type$ofType, _arg$type2;
145
-
146
- var type = (_arg$type = arg.type) === null || _arg$type === void 0 ? void 0 : (_arg$type$ofType = _arg$type.ofType) === null || _arg$type$ofType === void 0 ? void 0 : _arg$type$ofType.name;
147
- var isNotNull = ((_arg$type2 = arg.type) === null || _arg$type2 === void 0 ? void 0 : _arg$type2.kind) === 'NON_NULL';
148
-
149
- if (type && HASH.hasOwnProperty(type)) {
150
- var schema = HASH[type];
151
- var fields = schema.inputFields.filter(function (a) {
152
- return a.name !== 'clientMutationId';
153
- });
154
- var properties = fields.map(function (a) {
155
- return getInputForMutations(a.type, {
156
- name: a.name
157
- });
158
- }).reduce(function (m3, v) {
159
- m3[v.name] = v;
160
- return m3;
161
- }, {});
162
- m2[arg.name] = {
163
- isNotNull: isNotNull,
164
- type: type,
165
- properties: properties
166
- };
167
- } else {
168
- console.warn('whats wrong with ' + arg);
169
- }
170
-
171
- return m2;
172
- }, {});
173
-
174
- var getModelTypes = function getModelTypes(type) {
175
- return type.fields.filter(function (t) {
176
- return t.type.kind === 'OBJECT';
177
- }).filter(function (t) {
178
- return t.type.name !== 'Query';
179
- }).map(function (f) {
180
- return {
181
- name: f.name,
182
- type: f.type
183
- };
184
- });
185
- };
186
-
187
- var models = getModelTypes(HASH[mutation.type.name]);
188
-
189
- if (models.length > 0) {
190
- // TODO this is probably brittle
191
- var model = models[0].type.name;
192
- m[mutation.name] = {
193
- qtype: 'mutation',
194
- mutationType: mutationType,
195
- model: model,
196
- properties: props,
197
- output: mutation.type
198
- };
199
- } else {
200
- // no return args, probably void functions
201
- var t;
202
- var outputFields = [];
203
-
204
- if (mutation.type.kind === 'OBJECT') {
205
- t = HASH[mutation.type.name];
206
- outputFields = t.fields.map(function (f) {
207
- return {
208
- name: f.name,
209
- type: f.type
210
- };
211
- }).filter(function (f) {
212
- return f.name !== 'clientMutationId';
213
- }).filter(function (f) {
214
- return f.type.name !== 'Query';
215
- });
216
- }
217
-
218
- m[mutation.name] = {
219
- qtype: 'mutation',
220
- mutationType: mutationType,
221
- properties: props,
222
- output: mutation.type,
223
- outputs: outputFields
224
- };
225
- }
226
-
227
- return m;
228
- }, {}); // expect(mts).toMatchSnapshot();
229
-
230
- var parseConnectionQuery = function parseConnectionQuery(query, nesting) {
231
- var objectType = getObjectType(query.type);
232
- var Connection = HASH[objectType];
233
- var nodes = Connection.fields.find(function (f) {
234
- return f.name === 'nodes';
235
- });
236
- var edges = Connection.fields.find(function (f) {
237
- return f.name === 'edges';
238
- });
239
- var model = getObjectType(nodes.type);
240
- var context = {
241
- HASH: HASH,
242
- parseConnectionQuery: parseConnectionQuery,
243
- parseSingleQuery: parseSingleQuery
244
- };
245
-
246
- if (nesting === 0) {
247
- return {
248
- qtype: 'getMany',
249
- model: model,
250
- selection: parseSelectionScalar(context, model)
251
- };
252
- }
253
-
254
- return {
255
- qtype: 'getMany',
256
- model: model,
257
- selection: parseSelectionObject(context, model, 1)
258
- };
259
- };
260
-
261
- var parseSingleQuery = function parseSingleQuery(query, nesting) {
262
- var model = getObjectType(query.type);
263
- var context = {
264
- HASH: HASH,
265
- parseConnectionQuery: parseConnectionQuery,
266
- parseSingleQuery: parseSingleQuery
267
- };
268
-
269
- if (nesting === 0) {
270
- return {
271
- qtype: 'getOne',
272
- model: model,
273
- properties: query.args.reduce(function (m2, v) {
274
- m2[v.name] = getInputForQueries(v.type);
275
- return m2;
276
- }, {}),
277
- selection: parseSelectionScalar(context, model)
278
- };
279
- }
280
-
281
- return {
282
- model: model,
283
- qtype: 'getOne',
284
- properties: query.args.reduce(function (m2, v) {
285
- m2[v.name] = getInputForQueries(v.type);
286
- return m2;
287
- }, {}),
288
- selection: parseSelectionObject(context, model, 1)
289
- };
290
- };
291
-
292
- var queries = queriesRoot.fields.reduce(function (m, query) {
293
- // m[query.name] = getInputForQueries(query.type);
294
- if (query.type.kind === 'OBJECT') {
295
- if (isConnectionQuery(query)) {
296
- m[query.name] = parseConnectionQuery(query, 1);
297
- } else {
298
- m[query.name] = parseSingleQuery(query, 1);
299
- }
300
- }
301
-
302
- return m;
303
- }, {});
304
- return {
305
- queries: queries,
306
- mutations: mutations
307
- };
308
- }; // Parse selections for both scalar and object fields
309
-
310
-
311
- exports.parseGraphQuery = parseGraphQuery;
312
-
313
- function parseSelectionObject(context, model, nesting) {
314
- var HASH = context.HASH,
315
- parseConnectionQuery = context.parseConnectionQuery,
316
- parseSingleQuery = context.parseSingleQuery;
317
- throwIfInvalidContext(context);
318
- var selectionFields = HASH[model].fields.filter(function (f) {
319
- return !isPureObjectType(f.type);
320
- });
321
- var selection = selectionFields.map(function (f) {
322
- var _f$type$ofType;
323
-
324
- if (((_f$type$ofType = f.type.ofType) === null || _f$type$ofType === void 0 ? void 0 : _f$type$ofType.kind) === 'OBJECT') {
325
- if (isConnectionQuery(f)) {
326
- return _objectSpread({
327
- name: f.name
328
- }, parseConnectionQuery(f, nesting - 1));
329
- } else {
330
- return _objectSpread({
331
- name: f.name
332
- }, parseSingleQuery(f, nesting - 1));
333
- }
334
- }
335
-
336
- return f.name;
337
- });
338
- return selection;
339
- } // Parse selections for scalar types only, ignore all field selections
340
- // that have more nesting selection level
341
-
342
-
343
- function parseSelectionScalar(context, model) {
344
- var HASH = context.HASH;
345
- throwIfInvalidContext(context);
346
- var selectionFields = HASH[model].fields.filter(function (f) {
347
- return !isPureObjectType(f.type) && !isConnectionQuery(f);
348
- });
349
- var selection = selectionFields.map(function (f) {
350
- return f.name;
351
- });
352
- return selection;
353
- }
354
-
355
- function isConnectionQuery(query) {
356
- var objectType = getObjectType(query.type);
357
- var fields = query.args.map(function (a) {
358
- return a.name;
359
- });
360
- return /Connection$/.test(objectType) && fields.includes('condition') && fields.includes('filter');
361
- }
362
- /**
363
- * Check is a type is pure object type
364
- * pure object type is different from custom types in the sense that
365
- * it does not inherit from any type, custom types inherit from a parent type
366
- * @param {Object} typeObj
367
- * @returns {boolean}
368
- */
369
-
370
-
371
- function isPureObjectType(typeObj) {
372
- return typeObj.kind === 'OBJECT' && typeObj.name == null;
373
- }
374
-
375
- function getObjectType(type) {
376
- if (type.kind === 'OBJECT') return type.name;
377
- if (type.ofType) return getObjectType(type.ofType);
378
- }
379
-
380
- function throwIfInvalidContext(context) {
381
- var HASH = context.HASH,
382
- parseConnectionQuery = context.parseConnectionQuery,
383
- parseSingleQuery = context.parseSingleQuery;
384
-
385
- if (!HASH || !parseConnectionQuery || !parseSingleQuery) {
386
- throw new Error('parseSelection: context missing');
387
- }
388
- }
package/main/index.js DELETED
@@ -1,70 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- var _introspect = require("./introspect");
8
-
9
- Object.keys(_introspect).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (key in exports && exports[key] === _introspect[key]) return;
12
- Object.defineProperty(exports, key, {
13
- enumerable: true,
14
- get: function get() {
15
- return _introspect[key];
16
- }
17
- });
18
- });
19
-
20
- var _process = require("./process");
21
-
22
- Object.keys(_process).forEach(function (key) {
23
- if (key === "default" || key === "__esModule") return;
24
- if (key in exports && exports[key] === _process[key]) return;
25
- Object.defineProperty(exports, key, {
26
- enumerable: true,
27
- get: function get() {
28
- return _process[key];
29
- }
30
- });
31
- });
32
-
33
- var _query = require("./query");
34
-
35
- Object.keys(_query).forEach(function (key) {
36
- if (key === "default" || key === "__esModule") return;
37
- if (key in exports && exports[key] === _query[key]) return;
38
- Object.defineProperty(exports, key, {
39
- enumerable: true,
40
- get: function get() {
41
- return _query[key];
42
- }
43
- });
44
- });
45
-
46
- var _gql = require("./gql");
47
-
48
- Object.keys(_gql).forEach(function (key) {
49
- if (key === "default" || key === "__esModule") return;
50
- if (key in exports && exports[key] === _gql[key]) return;
51
- Object.defineProperty(exports, key, {
52
- enumerable: true,
53
- get: function get() {
54
- return _gql[key];
55
- }
56
- });
57
- });
58
-
59
- var _introspectGql = require("./introspectGql");
60
-
61
- Object.keys(_introspectGql).forEach(function (key) {
62
- if (key === "default" || key === "__esModule") return;
63
- if (key in exports && exports[key] === _introspectGql[key]) return;
64
- Object.defineProperty(exports, key, {
65
- enumerable: true,
66
- get: function get() {
67
- return _introspectGql[key];
68
- }
69
- });
70
- });
@@ -1,162 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.introspect = void 0;
9
-
10
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
11
-
12
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
13
-
14
- var _query = require("./query");
15
-
16
- var _utils = require("./utils");
17
-
18
- var _flatMap = _interopRequireDefault(require("lodash/flatMap"));
19
-
20
- function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
21
-
22
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
-
24
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
25
-
26
- var introspect = /*#__PURE__*/function () {
27
- var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(pgClient) {
28
- var _ref2,
29
- schemas,
30
- _ref2$includeExtensio,
31
- includeExtensions,
32
- _ref2$pgEnableTags,
33
- pgEnableTags,
34
- _ref2$pgThrowOnMissin,
35
- pgThrowOnMissingSchema,
36
- versionResult,
37
- serverVersionNum,
38
- introspectionQuery,
39
- _yield$pgClient$query,
40
- rows,
41
- result,
42
- _iterator,
43
- _step,
44
- object,
45
- extensionConfigurationClassIds,
46
- knownSchemas,
47
- missingSchemas,
48
- errorMessage,
49
- _args = arguments;
50
-
51
- return _regenerator["default"].wrap(function _callee$(_context) {
52
- while (1) {
53
- switch (_context.prev = _context.next) {
54
- case 0:
55
- _ref2 = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}, schemas = _ref2.schemas, _ref2$includeExtensio = _ref2.includeExtensions, includeExtensions = _ref2$includeExtensio === void 0 ? false : _ref2$includeExtensio, _ref2$pgEnableTags = _ref2.pgEnableTags, pgEnableTags = _ref2$pgEnableTags === void 0 ? true : _ref2$pgEnableTags, _ref2$pgThrowOnMissin = _ref2.pgThrowOnMissingSchema, pgThrowOnMissingSchema = _ref2$pgThrowOnMissin === void 0 ? true : _ref2$pgThrowOnMissin;
56
- _context.next = 3;
57
- return pgClient.query('show server_version_num;');
58
-
59
- case 3:
60
- versionResult = _context.sent;
61
- serverVersionNum = parseInt(versionResult.rows[0].server_version_num, 10);
62
- introspectionQuery = (0, _query.makeIntrospectionQuery)(serverVersionNum, {
63
- pgLegacyFunctionsOnly: false,
64
- pgIgnoreRBAC: true
65
- });
66
- _context.next = 8;
67
- return pgClient.query(introspectionQuery, [schemas, includeExtensions]);
68
-
69
- case 8:
70
- _yield$pgClient$query = _context.sent;
71
- rows = _yield$pgClient$query.rows;
72
- result = {
73
- __pgVersion: serverVersionNum,
74
- namespace: [],
75
- "class": [],
76
- attribute: [],
77
- type: [],
78
- constraint: [],
79
- procedure: [],
80
- extension: [],
81
- index: []
82
- };
83
- _iterator = _createForOfIteratorHelper(rows);
84
-
85
- try {
86
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
87
- object = _step.value.object;
88
- result[object.kind].push(object);
89
- } // Parse tags from comments
90
-
91
- } catch (err) {
92
- _iterator.e(err);
93
- } finally {
94
- _iterator.f();
95
- }
96
-
97
- ['namespace', 'class', 'attribute', 'type', 'constraint', 'procedure', 'extension', 'index'].forEach(function (kind) {
98
- result[kind].forEach(function (object) {
99
- // Keep a copy of the raw comment
100
- object.comment = object.description;
101
-
102
- if (pgEnableTags && object.description) {
103
- var parsed = (0, _utils.parseTags)(object.description);
104
- object.tags = parsed.tags;
105
- object.description = parsed.text;
106
- } else {
107
- object.tags = {};
108
- }
109
- });
110
- });
111
- extensionConfigurationClassIds = (0, _flatMap["default"])(result.extension, function (e) {
112
- return e.configurationClassIds;
113
- });
114
- result["class"].forEach(function (klass) {
115
- klass.isExtensionConfigurationTable = extensionConfigurationClassIds.indexOf(klass.id) >= 0;
116
- });
117
- ['namespace', 'class', 'attribute', 'type', 'constraint', 'procedure', 'extension', 'index'].forEach(function (k) {
118
- result[k].forEach(Object.freeze);
119
- });
120
- knownSchemas = result.namespace.map(function (n) {
121
- return n.name;
122
- });
123
- missingSchemas = schemas.filter(function (s) {
124
- return knownSchemas.indexOf(s) < 0;
125
- });
126
-
127
- if (!missingSchemas.length) {
128
- _context.next = 26;
129
- break;
130
- }
131
-
132
- errorMessage = "You requested to use schema '".concat(schemas.join("', '"), "'; however we couldn't find some of those! Missing schemas are: '").concat(missingSchemas.join("', '"), "'");
133
-
134
- if (!pgThrowOnMissingSchema) {
135
- _context.next = 25;
136
- break;
137
- }
138
-
139
- throw new Error(errorMessage);
140
-
141
- case 25:
142
- console.warn('⚠️ WARNING⚠️ ' + errorMessage); // eslint-disable-line no-console
143
-
144
- case 26:
145
- return _context.abrupt("return", Object.freeze(result));
146
-
147
- case 27:
148
- case "end":
149
- return _context.stop();
150
- }
151
- }
152
- }, _callee);
153
- }));
154
-
155
- return function introspect(_x) {
156
- return _ref.apply(this, arguments);
157
- };
158
- }(); // export const processIntrospection = async (pgClient, introspectionResultsByKind) => {
159
- // }
160
-
161
-
162
- exports.introspect = introspect;
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.IntrospectionQuery = void 0;
9
-
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
- var _graphqlTag = _interopRequireDefault(require("graphql-tag"));
13
-
14
- var _templateObject;
15
-
16
- var IntrospectionQuery = (0, _graphqlTag["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n query IntrospectionQuery {\n __schema {\n queryType {\n name\n }\n mutationType {\n name\n }\n subscriptionType {\n name\n }\n types {\n ...FullType\n }\n directives {\n name\n description\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n fragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n fragment InputValue on __InputValue {\n name\n description\n type {\n ...TypeRef\n }\n defaultValue\n }\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n"])));
17
- exports.IntrospectionQuery = IntrospectionQuery;