Enums

The following enums are available globally.

  • The options to apply to the creation of an index.

    • one:
    • two:
    • sort:
    • sortedCompound:
    • compound:
    • expire:
    • sparse: the index only references documents with the specified field
    • custom:
    • partialFilter:
    • unique: the index should be unique
    • buildInBackground: Create the index in the background
    • weight: the weighting object for use with a text index
    • text:
    See more

    Declaration

    Swift

    public enum IndexParameter
  • The expressions are currently only supporting literals.

    See more

    Declaration

    Swift

    public enum Expression: ValueConvertible
  • All Accumulated Group Expressions used for the group aggregation stage

    See more

    Declaration

    Swift

    public enum AccumulatedGroupExpression
  • AQT

    Abstract Query Tree.

    Made to be easily readable/usable so that an AQT instance can be easily translated to a Document as a Query or even possibly SQL in the future.

    See more

    Declaration

    Swift

    public indirect enum AQT
  • Defines the order in which a field has to be sorted

    See more

    Declaration

    Swift

    public enum SortOrder: ValueConvertible
  • An enumeration of the MongodDB-supported authentication mechanisms.

    • SCRAM_SHA_1: The SCRAM-SHA-1 mechanism.
    • MONGODB_CR: The MongoDB Challenge Response mechanism.
    • MONGODB_X509: The MongoDB X.509 mechanism.
    • PLAIN: The PLAIN mechanism.
    • GSSAPI: The GSSAPI mechanism.
    See more

    Declaration

    Swift

    public enum AuthenticationMechanism: String