Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CollabDBPostgreSQL

Index

Properties

LogLevels: typeof LogLevels = LogLevels
LogTags: typeof LogTags = LogTags
dbClient: Client

A reference to the pg NPM module. Can be used to run custom Postgres Queries

dbConnected: boolean

A boolean representing if the DB is connected or not.

Constructors

Methods

  • connectDB(): Promise<void>
  • Connects to the database. Must be called before calling 'getResolvers'

    Returns Promise<void>

  • disconnectDB(): Promise<void>
  • Disconnects from the database.

    Returns Promise<void>

  • Gets a user from the database, by ID

    Parameters

    • id: string

    Returns Promise<PostgresDBUser>

  • Gets a user from the database, by email

    Parameters

    • email: string

    Returns Promise<PostgresDBUser>

  • Gets a user from the database, by username

    Parameters

    • userName: string

    Returns Promise<PostgresDBUser>

  • Gets a list of users from an array of userIDs

    Parameters

    • ids: string[]

    Returns Promise<PostgresDBUser[]>

  • getResolvers(): UserResolvers
  • Gets the user resolvers that can be passed into the Collaboration server.

    Returns UserResolvers

Generated using TypeDoc