DocumentProtocol Interface
Packages > @anticrm/core > DocumentProtocol
Signature:
export interface DocumentProtocol
Properties
Property | Type | Description |
---|---|---|
find | ||
findOne | ||
loadDomain | (domain: string) => Promise<Doc[]> |
Events
find
Signature:
find: <T extends Doc>(_class: Ref<Class<T>>, query: DocumentQuery<T>, options?: FindOptions<T>) => Promise<T[]>;
findOne
Signature:
findOne: <T extends Doc>(_class: Ref<Class<T>>, query: DocumentQuery<T>) => Promise<T | undefined>;
loadDomain
Signature:
loadDomain: (domain: string) => Promise<Doc[]>;