Sample project using mongoDB Stitch. It's a CRUD application with an simple listener using ChangeStreamSession. Methods used were: watch(matchFilter: Document, delegate: ) find() insertOne() updateOne() deleteOne()
Step 1:
Go to MongoDB and create an account. Create an Atlas Service and a Stitch App.
Step 2: Go to MongoDB.swift and replace these parameters:
static let DATABASE = "database_name"
static let OBJECTS_COLLECTION = "collections_name"
static let ATLAS_SERVICE_NAME = "atlas_service_name"
static let STITCH_APP_ID = "stitch_app_id"
Before running the project do:
pod install
All you need is Cocoapods and Xcode 11 with at least iOS 12.4.
In this application i didn't developed any test.
- MongoDB - Servless platform from MongoDB
- Carlos Antunes - Initial work - carloschfa