npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@gfcc/mongo-tenant-repository

v2.1.0

Published

Repositories and Services for mongo tenant

Downloads

14

Readme

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