import { KeyworkCollection } from "https://deno.land/x/keywork@v6.2.1/collections/mod.ts";
Properties
protected
__indexPathByPropertyName: Record<keyof ExpectedType, string | undefined>Path to index listing entries by an entry's properties
Methods
protected
fetchIndexPrefixes(): Promise<string[]>addEntryToIndexes<E extends ExpectedType>(entry: E, metadata: KeyworkDocumentMetadata)
createDocumentReference(relativeDocPath: string)
Create a KeyworkDocumentReference
instance that refers to the document at the specified relative path.
fetchDocumentMetadataByPath(relativeDocPath: string): Promise<null | KeyworkDocumentMetadata>
Fetches a given document's metadata. This is used to determine a document's deserialization ahead of its fetching.
fetchDocuments(options?: FetchListOptions): Promise<CollectionDocumentReferencesResponse<ExpectedType>>
Fetches a paginated list of the immediate KeyworkDocumentReference
.
fetchDocumentsList(options?: FetchListOptions)
fetchDocumentsListByID(options?: FetchListOptions)
Fetches a paginated list of the immediate documents within this collection.
query()