@pothos/plugin-dataloader
Version:
A Pothos plugin for attaching dataloader to object types
23 lines (22 loc) • 588 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 { UnionRef } from '@pothos/core';
export class LoadableUnionRef extends UnionRef {
constructor(name, getDataloader) {
super(name), _define_property(this, "getDataloader", void 0);
this.getDataloader = getDataloader;
}
}
//# sourceMappingURL=union.js.map