Swiftpack.co - swift-cloud/MongoDB as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by swift-cloud.
swift-cloud/MongoDB 1.0.0
A MongoDB client compatible with Swift Cloud and Fastly Compute@Edge
⭐️ 7
🕓 1 year ago
iOS macOS watchOS tvOS driverKit macCatalyst
.package(url: "https://github.com/swift-cloud/MongoDB.git", from: "1.0.0")

MongoDB

A MongoDB Atlas Data API library compatible with all Apple platforms, Swift Cloud and Fastly Compute@Edge

Usage

import MongoDB

let client = MongoClient(
    endpoint: "https://us-east-1.aws.data.mongodb-api.com/app/data-12345/endpoint/data/v1",
    cluster: "cluster-prod",
    database: "test",
    apiKey: "..."
)

let user = try await client
    .collection("users")
    .send(.findOne())
    .document(User.self)

GitHub

link
Stars: 7
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v1.0.0 - Initial Release
1 year ago

Initial Release 🥇

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics