0.0.6 • Published 7 months ago

mongo-realm-web-wrapper v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

mongo-realm-web-wrapper

import { MongoClient } from 'mongo-realm-web-wrapper'

const client = new MongoClient({ id, key, serviceName })

async function run() {
  try {
    const database = client.db('sample_mflix')
    const movies = database.collection('movies')

    // Query for a movie that has the title 'Back to the Future'
    const query = { title: 'Back to the Future' }
    const movie = await movies.findOne(query)

    console.log(movie)
  } finally {
    // Ensures that the client will close when you finish/error
    await client.close()
  }
}

run().catch(console.dir)
0.0.6

7 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago

0.0.0

2 years ago