SortEncoder
Mongo.SortEncoder.swift:7@frozen struct SortEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String@frozen struct SortEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == Stringimport MongoA single-type module that declares the Mongo namespace.
import MongoBuiltinsenum Mongoprotocol RawRepresentable<RawValue>A type that can be converted to and from an associated raw value.
associatedtype RawValueThe raw type that can be used to represent all values of the conforming type.
@frozen struct StringA Unicode string value that is a collection of characters.
protocol EncodableDocument : BSONRepresentable, BSONDecodable, BSONEncodable where Self.BSONRepresentation == BSON.DocumentAn EncodableDocument is nothing more than a type that supports an init(with:) builder API.
protocol EncodableList : BSONRepresentable, BSONDecodable, BSONEncodable where Self.BSONRepresentation == BSON.ListAn EncodableList is nothing more than a type that supports an init(with:) builder API.
protocol PipelineEncodable : Mongo.PipelineStreamableprotocol PipelineStreamableprotocol PredicateConfigurable<PredicateArgument>protocol PredicateEncodableprotocol ProjectionEncodable<CodingKey>protocol ProjectionOperatorEncodableprotocol SortDirectionprotocol UpdateValueOperatorA 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 EmptyDocumentA 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 FilterDocumentNot 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 PredicateDocumentNot 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 enum SortMetadata@frozen struct SortOperator@frozen struct SortOperatorEncoder@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 ZipDocumentprotocol Sendableprotocol CopyableA type whose values can be implicitly or explicitly copied.
protocol Encoder<Frame>protocol Escapableinit(_ output: consuming BSON.Output) static var frame: BSON.DocumentFrame { get }subscript<Direction>(natural: Natural) -> ((Direction) -> Never)? where Direction : Mongo.SortDirection { get set } subscript<Direction>(path: CodingKey) -> ((Direction) -> Never)? where Direction : Mongo.SortDirection { get set } subscript(path: CodingKey, yield: (inout Mongo.SortOperatorEncoder) -> ()) -> Void { mutating get } consuming func move() -> BSON.Output @frozen enum Natural