The RemoteMongoClient can be used to get database and collection objects for interacting with MongoDB data via the Stitch MongoDB service.
Service clients are created with StitchAppClient.getServiceClient by passing RemoteMongoClient.factory and the "Stitch Service Name" found under Clusters in the Stitch control panel ("mongodb-atlas" by default).
Once the RemoteMongoClient is instantiated, you can use the db method to access a RemoteMongoDatabase. A RemoteMongoDatabase will then provide access to a RemoteMongoCollection, where you can read and write data.
Note: The client needs to log in (at least anonymously) to use the database. See StitchAuth.
Generated using TypeDoc