@pothos/core
Version:
Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript
26 lines (25 loc) • 922 B
JavaScript
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;
}
import { inputShapeKey } from '../types/index.js';
import { BaseTypeRef } from './base.js';
let _inputShapeKey = inputShapeKey;
export class InputListRef extends 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