DocumentFragment

public final 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 { get }
  • Gets the document from the document fragment object.

    Declaration

    Swift

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

    Declaration

    Swift

    public subscript(key: String) -> Fragment { get }

    Parameters

    key

    The key.