New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@gfcc/mongo-tenant-repository

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gfcc/mongo-tenant-repository

Repositories and Services for mongo tenant

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
5
Created
Source

Mongo Tenant Repository

This module provides common, unified repository and model service functionality in general and in multi tenancy context.

API

BaseRepository

  getObjectId(id) : mongoose.Types.ObjectId

  getSchemaTypes() : mongoose.Types

  create(params, callback) : BaseRepository

  find(conditions, callback) : BaseRepository

  findById(entityId, callback) : BaseRepository

  findByIdAndUpdate(entityId, properties, options, callback) : BaseRepository

  findByIdAndRemove(entityId, callback) : BaseRepository

  findByCustomId(customId, callback) : BaseRepository

  findByCustomIdAndUpdate(customId, properties, options, callback) : BaseRepository

  findByCustomIdAndRemove(customId, callback) : BaseRepository

  findOneAndUpdate(conditions, properties, options, callback) : BaseRepository

  findOneAndRemove(conditions, callback) : BaseRepository

  findOne(query, callback) : BaseRepository

  findList(query, options, callback) : BaseRepository

  remove(conditions, callback) : BaseRepository

  findAndRemove(conditions, callback) : BaseRepository

BaseRepositoryService

  create(params, callback) : BaseRepositoryService

  findById(entityId, callback) : BaseRepositoryService

  findByIdAndUpdate(entityId, properties, options, callback) : BaseRepositoryService

  findByIdAndRemove(entityId, callback) : BaseRepositoryService

  findByCustomId(customId, callback) : BaseRepositoryService

  findByCustomIdAndUpdate(customId, properties, options, callback) : BaseRepositoryService

  findByCustomIdAndRemove(customId, callback) : BaseRepositoryService

  findOneAndUpdate(conditions, properties, options, callback) : BaseRepositoryService

  findOneAndRemove(conditions, callback) : BaseRepositoryService

  findOne(query, callback) : BaseRepositoryService

  findList(query, options, callback) : BaseRepositoryService

MultiTenancyRepository

  create(tenantId, params, callback) : MultiTenancyRepository

  find(tenantId, conditions, callback) : MultiTenancyRepository

  findById(tenantId, entityId, callback) : MultiTenancyRepository

  findByIdAndUpdate(tenantId, entityId, properties, options, callback) : MultiTenancyRepository

  findByIdAndRemove(tenantId, entityId, callback) : MultiTenancyRepository

  findByCustomId(tenantId, customId, callback) : MultiTenancyRepository

  findByCustomIdAndUpdate(tenantId, customId, properties, options, callback) : MultiTenancyRepository

  findByCustomIdAndRemove(tenantId, customId, callback) : MultiTenancyRepository

  findOneAndUpdate(tenantId, conditions, properties, options, callback) : MultiTenancyRepository

  findOneAndRemove(tenantId, conditions, callback) : MultiTenancyRepository

  findOne(tenantId, query, callback) : MultiTenancyRepository

  findList(tenantId, query, options, callback) : MultiTenancyRepository

  remove(tenantId, conditions, callback) : MultiTenancyRepository

  findAndRemove(tenantId, conditions, callback) : MultiTenancyRepository

MultiTenancyRepositoryService

  create(tenantId, params, callback) : MultiTenancyRepositoryService

  findById(tenantId, entityId, callback) : MultiTenancyRepositoryService

  findByIdAndUpdate(tenantId, entityId, properties, options, callback) : MultiTenancyRepositoryService

  findByIdAndRemove(tenantId, entityId, callback) : MultiTenancyRepositoryService

  findByCustomId(tenantId, customId, callback) : MultiTenancyRepositoryService

  findByCustomIdAndUpdate(tenantId, customId, properties, options, callback) : MultiTenancyRepositoryService

  findByCustomIdAndRemove(tenantId, customId, callback) : MultiTenancyRepositoryService

  findOneAndUpdate(tenantId, conditions, properties, options, callback) : MultiTenancyRepositoryService

  findOneAndRemove(tenantId, conditions, callback) : MultiTenancyRepositoryService

  findOne(tenantId, query, callback) : MultiTenancyRepositoryService

  findList(tenantId, query, options, callback) : MultiTenancyRepositoryService

FAQs

Package last updated on 13 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts