File

libs/users/domain/src/lib/users-repository.interface.ts

Index

Methods

Methods

findOneByEmail
findOneByEmail(email: string)
Parameters :
Name Type Optional
email string No
findOneById
findOneById(id: string)
Parameters :
Name Type Optional
id string No
import { User } from './user.entity';

export interface UsersRepository {
  findOneById(id: string): Promise<User | null>;
  findOneByEmail(email: string): Promise<User | null>;
}

export const USERS_REPOSITORY = Symbol('USERS_REPOSITORY');

results matching ""

    No results matching ""