Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Collection<docSchema>

Type Parameters

Hierarchy

  • Collection

Index

Constructors

  • new Collection<docSchema>(id: string, docSchema: docSchema): Collection<docSchema>

Properties

_documents: Map<string, Document<string, Collection<docSchema>>> = ...

Accessors

  • get docSchema(): docSchema
  • get id(): string

Methods

  • deleteAllDocuments(): void
  • hasDocument(id: string): boolean
  • toSave(): { documents: { collections: ({ id: string; documents: { id: string; collections: ...[]; data: { [k: string]: any; }; }[]; schema: { [k: string]: any; }; })[]; data: {}; id: string }[]; id: string; schema: {} }
  • Returns { documents: { collections: ({ id: string; documents: { id: string; collections: ...[]; data: { [k: string]: any; }; }[]; schema: { [k: string]: any; }; })[]; data: {}; id: string }[]; id: string; schema: {} }

    • documents: { collections: ({ id: string; documents: { id: string; collections: ...[]; data: { [k: string]: any; }; }[]; schema: { [k: string]: any; }; })[]; data: {}; id: string }[]
    • id: string
    • schema: {}
      • [k: string]: any

Generated using TypeDoc version 0.22.18, the 7/5/2022