Options
All
  • Public
  • Public/Protected
  • All
Menu

Module user/nodejs

Index

Variables

Const MODEL_NAME

MODEL_NAME: "User" = "User"

Functions

Const createModels

Const createUserModel

Const createUserSchema

  • Creates user graphql schema

    Parameters

    Returns {}

Const createUserSeed

  • Creates basic user seed, one admin, one moderator and buch of basic users

    Parameters

    Returns Pick<ServerModuleModel, "seed">

Const isMe

  • isMe(authException: any, model: Model<any>, field?: string): (Anonymous function)
  • Parameters

    • authException: any
    • model: Model<any>
    • Default value field: string = "_id"

    Returns (Anonymous function)

Generated using TypeDoc