DocumentProtocol Interface

Packages > @anticrm/core > DocumentProtocol

Signature:

export interface DocumentProtocol 

Properties

List of properties of this interface
Property Type Description
find Doc>(_class: Ref<Class>, query: DocumentQuery, options?: FindOptions) => Promise
findOne Doc>(_class: Ref<Class>, query: DocumentQuery) => Promise
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[]>;