Metadata

public struct Metadata

Metadata related to a document, but not part of the user data of the document

  • id

    Unique Id of the Document

    Declaration

    Swift

    public fileprivate(set) var id: String
  • Unique Revision Id of the Document. This updates with each change to the document

    Declaration

    Swift

    public fileprivate(set) var revision: String
  • Indicates this document represents a deleted document that has not yet been purged

    Declaration

    Swift

    public fileprivate(set) var isDeleted: Bool = false
  • Date the document was created, if created using the Predix Sync SDK

    Declaration

    Swift

    public fileprivate(set) var createDate: Date?
  • Date the document was last updated, if updated using the Predix Sync SDK For new documents, will be nil until the document is saved.

    Declaration

    Swift

    public fileprivate(set) var lastChange: Date?
  • User access channels assigned to this document. Used by the server to control which documents are replicated down to which clients.

    Declaration

    Swift

    public var channels: [String] = []
  • Type of document of the document. Useful for determining what kind of data will be found in the document

    Declaration

    Swift

    public var type: String?