Document

struct Document : Collection, ExpressibleByDictionaryLiteral, ExpressibleByArrayLiteral
  • Appends this Document to a collection

    Throws

    When unable to send the request/receive the response, the authenticated user doesn’t have sufficient permissions or an error occurred

    Declaration

    Swift

    public mutating func append(to collection: Collection) throws -> DBRef
  • Upserts this Document into a collection.

    Throws

    When unable to send the request/receive the response, the authenticated user doesn’t have sufficient permissions or an error occurred

    Declaration

    Swift

    public mutating func upsert(into collection: Collection) throws -> DBRef
  • Prints the Document as ExtendedJSON

    Declaration

    Swift

    public var debugDescription: String