UNPKG

@pothos/core

Version:

Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript

35 lines (34 loc) 1.11 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "InputListRef", { enumerable: true, get: function() { return InputListRef; } }); const _types = require("../types"); const _base = require("./base"); function _define_property(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } let _inputShapeKey = _types.inputShapeKey; class InputListRef extends _base.BaseTypeRef { constructor(listType, required){ super('InputList', `InputList<${String(listType)}>`), _define_property(this, "kind", 'InputList'), _define_property(this, _inputShapeKey, void 0), _define_property(this, "$inferInput", void 0), _define_property(this, "listType", void 0), _define_property(this, "required", void 0); this.listType = listType; this.required = required; } } //# sourceMappingURL=input-list.js.map