How to use @teamhive/sequelize-common - 2 common examples

To help you get started, we’ve selected a few @teamhive/sequelize-common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TeamHive / nestjs-seed / src / app / modules / user / services / user / user.service.ts View on Github external
async fetchFromGoogle(profile: Profile): Promise {
        return await this.userRepository.findOne({
            attributes: getAttributes([
                'identity',
                'firstName',
                'lastName',
                'email'
            ]),
            where: {
                provider: profile.provider,
                providerId: profile.id,
            }
        });
    }
github TeamHive / nestjs-seed / src / app / modules / user / services / user / user.service.ts View on Github external
async fetchAll(): Promise {
        return await this.userRepository.findAll({
            attributes: getAttributes([
                'identity',
                'firstName',
                'lastName',
                'email',
                'provider',
                'avatar'
            ])
        });
    }

@teamhive/sequelize-common

A common set of models and functions that we use throughout most of our Sequelize projects

ISC
Latest version published 3 years ago

Package Health Score

46 / 100
Full package analysis

Popular @teamhive/sequelize-common functions