SortOperatorEncoder
Mongo.SortOperatorEncoder.swift:6@frozen struct SortOperatorEncoder
@frozen struct SortOperatorEncoder
import Mongo
A single-type module that declares the Mongo
namespace.
import MongoBuiltins
enum Mongo
protocol EncodableDocument : BSONRepresentable, BSONDecodable, BSONEncodable where Self.BSONRepresentation == BSON.Document
An EncodableDocument
is nothing more than a type that supports an init(with:)
builder API.
protocol EncodableList : BSONRepresentable, BSONDecodable, BSONEncodable where Self.BSONRepresentation == BSON.List
An EncodableList
is nothing more than a type that supports an init(with:)
builder API.
protocol PipelineEncodable : Mongo.PipelineStreamable
protocol PipelineStreamable
protocol PredicateConfigurable<PredicateArgument>
protocol PredicateEncodable
protocol ProjectionEncodable<CodingKey>
protocol ProjectionOperatorEncodable
protocol SortDirection
protocol UpdateValueOperator
A value operator is an update operator that encodes a document that can contain fields of arbitrary BSONEncodable
types. It has no requirements, as it only exists to gate the subscripts of UpdateFieldsEncoder
.
@frozen struct Accumulator
@frozen struct BucketAutoDocument
@frozen struct BucketAutoEncoder
@frozen struct BucketDocument
@frozen struct BucketEncoder
@frozen struct BucketOutputDocument
@frozen struct BucketOutputEncoder
@frozen enum Change<Delta> where Delta : Mongo.MasterCodingDelta, Delta.Model : Identifiable
@frozen struct ChangeEvent<Delta> where Delta : Mongo.MasterCodingDelta, Delta.Model : Identifiable
@frozen struct ChangeEventIdentifier
@frozen struct ChangeStreamEncoder
@frozen struct ChangeTruncatedArray<Field>
@frozen struct CollectionStatsDocument
@frozen struct CurrentOperationDocument
@frozen struct EmptyDocument
A type that can be used to expect an empty document. Decoding from a non-empty document (or a value that is not a document at all) will throw an error.
@frozen struct Expression
@frozen struct ExpressionEncoder
@frozen struct FacetDocument<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen struct FacetEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen struct FilterDocument
Not to be confused with PredicateDocument
.
@frozen enum GroupBy
@frozen struct GroupDocument
@frozen struct IdentityDocument<ID>
An generic document model that can be used to extract the _id
field of a document. This type is suitable for unsharded collections only.
@frozen struct LatencyStatsDocument
@frozen struct LetDocument
@frozen struct LetEncoder
@frozen struct List<Element, Encodable> where Encodable : BSONEncodable
@frozen struct LookupDocument
@frozen struct LookupEncoder
@frozen struct MapDocument
@frozen struct MergeDocument
@frozen enum MergeInsertMode
@frozen enum MergeUpdateMode
@frozen struct Pipeline
@frozen struct PipelineEncoder
@frozen struct PredicateDocument
Not to be confused with FilterDocument
.
@frozen struct PredicateEncoder
@frozen struct PredicateList
@frozen struct PredicateListEncoder
@frozen struct PredicateOperator
@frozen struct PredicateOperatorEncoder
@frozen enum PreferredNumbers
@frozen struct ProjectionDocument<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen struct ProjectionEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen enum ProjectionMetadata
@frozen struct ProjectionOperator
@frozen struct ProjectionOperatorEncoder
@frozen struct ReduceDocument
@frozen struct SampleDocument
@frozen struct SetDocument<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen struct SetEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen struct SetListEncoder
@frozen struct SortArrayDocument
@frozen enum SortAscending
@frozen enum SortBy
@frozen enum SortDescending
@frozen struct SortDocument<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen struct SortEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen enum SortMetadata
@frozen struct SortOperator
@frozen struct StorageStatsDocument
@frozen struct SwitchBranch
@frozen struct SwitchBranches
@frozen struct SwitchDocument
@frozen struct UnionWithDocument
@frozen struct UnwindDocument
@frozen struct UpdateArray
@frozen struct UpdateArrayEncoder
@frozen enum UpdateBitwiseOperator
@frozen struct UpdateDocument
@frozen struct UpdateEncoder
@frozen struct UpdateFields<Operator>
@frozen struct UpdateFieldsEncoder<Operator>
@frozen enum UpdatePosition
@frozen struct ZipDocument
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Encoder<Frame>
protocol Escapable
protocol Sendable
init(_ output: consuming BSON.Output)
static var frame: BSON.DocumentFrame { get }
subscript(key: Meta) -> Mongo.SortMetadata? { get set }
consuming func move() -> BSON.Output
@frozen enum Meta
This is slightly different from its Mongo.ProjectionEncoder
counterpart; it only accepts textScore
.