core: add projection for discussion

This commit is contained in:
undefined committed 2021-03-08 14:07:26 +08:00
1 parent 71aabe38b5
commit 2344a41816
5 files changed
+99 -46

No files matched your search

+2 -4
View File
@@ -5,16 +5,14 @@ import { STATUS } from './builtin';
import * as document from './document';
import * as domain from './domain';
import { buildProjection } from '../utils';
import { ProblemStatusDoc, Pdict } from '../interface';
import type { ProblemStatusDoc, Pdict, Document } from '../interface';
import { Content } from '../loader';
import { ArrayKeys, NumberKeys, Projection } from '../typeutils';
import { ProblemNotFoundError } from '../error';
import storage from '../service/storage';
import * as bus from '../service/bus';
export interface Pdoc {
_id: ObjectID
}
export interface Pdoc extends Document { }
export namespace Pdoc {
export type Field = keyof Pdoc;
export const fields: Field[] = [];