The StitchAuth object representing the authentication state of this client. Includes methods for logging in and logging out.
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.
Close stops any background processes maintained by the client. This should be called when the client is no longer needed.
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-server-sdk" const client = Stitch.initializeDefaultAppClient('example-stitch-app-id')
See Also