Founder Of Haibrid
Building BeltStripe
Mongo London Leader
Big Fan Of Avatar Movie
This is not a Game of Thrones talk
Tyrion is great
Night king's death was meeh
Tell Cersei it was meĀ
GDPR Police
Personally identifiable data
If you work in healthcare, you are screwed
Comes up with 1000 new requirements
Requires an API endpoint for each requirement
Probably wants you to connect to some 3rd party API
Select your own cloud provider
Select your data location
Offer multi-cloud region
Scale as you use
Mongo DBAAS
Charts
Functions
Hosting
Webhook Endpoints
Data API
Security Rules
Schema
Offline Sync
.........
Charts x
Functions x
Hosting x
Webhook Endpoints x
Data API x
Auth x
API x
Offline Sync x
Client SDKs x
import * as Realm from "realm-web";
const app = new Realm.App({ id: "westeros-realm-app-id" });
// 1. Login as a Stark
const credentials = Realm.Credentials.emailPassword("jon.snow@winterfell.com", "ghost123");
const user = await app.logIn(credentials);
// 2. Send a Raven (Call a Realm Function)
const result = await user.functions.sendRaven("Winter is Coming", "+1-WINTERFELL");
// 3. Query the Great Houses
const mongodb = user.mongoClient("mongodb-atlas");
const collection = mongodb.db("westeros").collection("houses");
const houses = await collection.find({ region: "The North" });
// 4. Add a New Lord
await collection.insertOne({
name: "Eddard Stark",
house: "Stark",
sigil: "Direwolf",
words: "Winter is Coming"
});
// 5. Update Last Seen at the Wall
await collection.updateOne(
{ name: "Jon Snow" },
{ $set: { lastSeenAt: "Castle Black", date: new Date() } }
);
// 6. Remove a Fallen King
await collection.deleteOne({ name: "Joffrey Baratheon" });
// 7. Logout (Bend the Knee)
await user.logOut();https://www.mongodb.com/atlas
Nigerian For Any Questions?