The StitchAuth object representing the login state of this client. Includes methods for logging in and logging out.
Login state can be persisted beyond the lifetime of a browser
session. A StitchAppClient retrieved from the Stitch
singleton may or
may not be already authenticated when first initialized.
Calls the MongoDB Stitch function with the provided name and arguments, and returns the result as decoded extended JSON.
The name of the function to call.
The arguments to the function.
Retrieves a general-purpose service client for the Stitch service associated with the specified name. Use this for services which do not have a well-defined interface in the SDK.
The name of the desired service in MongoDB Stitch.
Retrieves the service client for the Stitch service associated with the specified name and factory.
The factory that produces the desired service client.
The name of the desired service in MongoDB Stitch.
Retrieves the service client for the Stitch service associated with the specificed factory.
The factory that produces the desired service client.
Generated using TypeDoc
StitchAppClient
The StitchAppClient is the interface to a MongoDB Stitch App backend.
It is created by the Stitch singleton.
The StitchAppClient holds a StitchAuth object for managing the login state of the client.
It provides clients for Stitch Services including the RemoteMongoClient for database and collection access.
Finally, the StitchAppClient can execute Stitch Functions.
Example
import { Stitch } from "mongodb-stitch-browser-sdk" const client = Stitch.initializeDefaultAppClient('example-stitch-app-id')
See Also