Y

Classes

Doc

Type Definitions

DocOpts

Properties:
Name Type Attributes Default Description
DocOpts.gc boolean <optional>
true

Disable garbage collection (default: gc=true)

DocOpts.gcFilter function <optional>

Will be called before an Item is garbage collected. Return false to keep the Item.

DocOpts.guid string <optional>

Define a globally unique identifier for this document

DocOpts.meta any <optional>

Any kind of meta information you want to associate with this document. If this is a subdocument, remote peers will store the meta information as well.

DocOpts.autoLoad boolean <optional>

If a subdocument, automatically load document. If this is a subdocument, remote peers will load the document as well automatically.