generator-oda-api-simple
Version:
api-simple project genrator
14 lines (11 loc) • 480 B
text/typescript
import RegisterConnectors from '../graphql-gen/data/registerConnectors';
import User from '../graphql-gen/data/User/adapter/connector';
export default class DataConnectors extends RegisterConnectors {
public get Viewer(): User {
if (!this._Viewer) {
this._Viewer = new User({ mongoose: this.mongoose, connectors: this, user: this.user, owner: this.owner, acls: this.acls, userGroup: this.userGroup });
}
return this._Viewer;
}
protected _Viewer: User;
}