Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Document<id, parent>

Type Parameters

Hierarchy

  • Document

Index

Constructors

  • new Document<id, parent>(id: id, parent: parent): Document<id, parent>

Properties

_data: { [ prop in string | number | symbol]: parent["docSchema"][prop] extends any[] ? MapField<any[any][1]> : parent["docSchema"][prop]["prototype"] }

Accessors

  • get id(): id
  • get parent(): parent

Methods

  • get<k>(field: k): { [ prop in string | number | symbol]: parent["docSchema"][prop] extends any[] ? MapField<any[any][1]> : parent["docSchema"][prop]["prototype"] }[k]["value"]
  • Type Parameters

    • k extends string | number | symbol

    Parameters

    • field: k

    Returns { [ prop in string | number | symbol]: parent["docSchema"][prop] extends any[] ? MapField<any[any][1]> : parent["docSchema"][prop]["prototype"] }[k]["value"]

  • hasCollection(id: string | Collection<{}>): boolean
  • set<k>(field: k, value: { [ prop in string | number | symbol]: parent["docSchema"][prop] extends any[] ? MapField<any[any][1]> : parent["docSchema"][prop]["prototype"] }[k]["value"]): void
  • Type Parameters

    • k extends string | number | symbol

    Parameters

    • field: k
    • value: { [ prop in string | number | symbol]: parent["docSchema"][prop] extends any[] ? MapField<any[any][1]> : parent["docSchema"][prop]["prototype"] }[k]["value"]

    Returns void

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

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

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