DBPointer

public struct DBPointer : BSONValue, Codable, Equatable

A struct to represent the deprecated DBPointer type. DBPointers cannot be instantiated, but they can be read from existing documents that contain them.

  • Declaration

    Swift

    public var bsonType: BSONType { get }
  • ref

    Destination namespace of the pointer.

    Declaration

    Swift

    public let ref: String
  • id

    Destination _id (assumed to be an ObjectId) of the pointed-to document.

    Declaration

    Swift

    public let id: ObjectId
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to: Encoder) throws
  • Declaration

    Swift

    public func encode(to storage: DocumentStorage, forKey key: String) throws
  • Declaration

    Swift

    public static func from(iterator iter: DocumentIterator) throws -> DBPointer