Application

extension Application

An extension to Vapor’s Application type to add support for configuring your application to interact with a MongoDB deployment. All of the API is namespaced under the .mongoDB property on the Application.MongoDB type. This extension supports the following:

See Application.MongoDB for further details.

  • Returns an instance of MongoDB, providing access to MongoDB APIs for use at the Application level.

    Declaration

    Swift

    public var mongoDB: MongoDB { get }
  • A type providing access to MongoDB APIs for use at the Application level.

    See more

    Declaration

    Swift

    public struct MongoDB