DocumentFragment

public class DocumentFragment: DictionaryFragment

DocumentFragment provides access to a document object. DocumentFragment also provides subscript access by either key or index to the data values of the document which are wrapped by Fragment objects.

  • Checks whether the document exists in the database or not.

    Declaration

    Swift

    public var exists: Bool
  • Gets the document from the document fragment object.

    Declaration

    Swift

    public var document: Document?
  • Subscript access to a Fragment object by the given key.

    Declaration

    Swift

    public subscript(key: String) -> Fragment

    Parameters

    key

    The key.