Options
All
  • Public
  • Public/Protected
  • All
Menu

The fundamental set of methods for communicating with a MongoDB Stitch application. Contains methods for executing Stitch functions and retrieving clients for Stitch services, and contains a StitchAuth object to manage the authentication state of the client. An implementation can be instantiated using the Stitch utility class.

Hierarchy

  • StitchAppClient

Index

Properties

Methods

Properties

auth

The StitchAuth object representing the authentication state of this client. Includes methods for logging in and logging out.

Authentication 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.

Methods

callFunction

  • callFunction(name: string, args: any[]): Promise<any>
  • Calls the MongoDB Stitch function with the provided name and arguments, and returns the result as decoded extended JSON.

    Parameters

    • name: string

      The name of the function to call.

    • args: any[]

      The arguments to the function.

    Returns Promise<any>

getServiceClient

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc