MongoServerAPI
public struct MongoServerAPI : Codable
A type containing options for specifying a MongoDB server API version and related behavior.
-
Represents a server API version.
See moreDeclaration
Swift
public struct Version : Codable, Equatable, LosslessStringConvertible -
Declares an API version to use.
Declaration
Swift
public var version: Version -
Specifies whether the server should reject all commands that are not part of the declare API version. This includes command options and aggregation pipeline stages.
Declaration
Swift
public var strict: Bool? -
Specifies whether the server should return command failures when functionality that is deprecated in the specified API version is used.
Declaration
Swift
public var deprecationErrors: Bool? -
Convenience initializer allowing optional parameters to be optional or omitted.
Declaration
Swift
public init(version: Version, strict: Bool? = nil, deprecationErrors: Bool? = nil)
View on GitHub
Install in Dash
MongoServerAPI Structure Reference